From 1e1b2ab221851efc414678b7ea52ef2ca788ce9f Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sun, 10 Jan 2010 10:40:07 -0800 Subject: * OMG! All but one references to UserProfileCacheService have been rerouted! * HG is seriously broken here * Compiles. Untested. --- .../Framework/Serialization/External/UserProfileSerializer.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'OpenSim/Framework/Serialization/External') diff --git a/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs b/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs index fb269b7..de106b2 100644 --- a/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs +++ b/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs @@ -29,6 +29,7 @@ using System.IO; using System.Xml; using OpenMetaverse; using OpenSim.Framework; +using OpenSim.Services.Interfaces; namespace OpenSim.Framework.Serialization.External { @@ -40,7 +41,7 @@ namespace OpenSim.Framework.Serialization.External public const int MAJOR_VERSION = 0; public const int MINOR_VERSION = 1; - public static string Serialize(UserProfileData profile) + public static string Serialize(UserAccount profile) { StringWriter sw = new StringWriter(); XmlTextWriter xtw = new XmlTextWriter(sw); @@ -51,9 +52,9 @@ namespace OpenSim.Framework.Serialization.External xtw.WriteAttributeString("major_version", MAJOR_VERSION.ToString()); xtw.WriteAttributeString("minor_version", MINOR_VERSION.ToString()); - xtw.WriteElementString("name", profile.Name); - xtw.WriteElementString("id", profile.ID.ToString()); - xtw.WriteElementString("about", profile.AboutText); + xtw.WriteElementString("name", profile.FirstName + " " + profile.LastName); + xtw.WriteElementString("id", profile.PrincipalID.ToString()); + xtw.WriteElementString("about", ""); // Not sure if we're storing this yet, need to take a look // xtw.WriteElementString("Url", profile.Url); -- cgit v1.1