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. --- OpenSim/Services/Interfaces/IUserAccountService.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'OpenSim/Services/Interfaces') diff --git a/OpenSim/Services/Interfaces/IUserAccountService.cs b/OpenSim/Services/Interfaces/IUserAccountService.cs index b1be64b..942174c 100644 --- a/OpenSim/Services/Interfaces/IUserAccountService.cs +++ b/OpenSim/Services/Interfaces/IUserAccountService.cs @@ -58,11 +58,19 @@ namespace OpenSim.Services.Interfaces public string Email; public UUID PrincipalID; public UUID ScopeID; + public int UserLevel; + public int UserFlags; + public string UserTitle; public Dictionary ServiceURLs; public int Created; + public string Name + { + get { return FirstName + " " + LastName; } + } + public UserAccount(Dictionary kvp) { if (kvp.ContainsKey("FirstName")) @@ -75,6 +83,13 @@ namespace OpenSim.Services.Interfaces UUID.TryParse(kvp["PrincipalID"].ToString(), out PrincipalID); if (kvp.ContainsKey("ScopeID")) UUID.TryParse(kvp["ScopeID"].ToString(), out ScopeID); + if (kvp.ContainsKey("UserLevel")) + Convert.ToInt32(kvp["UserLevel"].ToString()); + if (kvp.ContainsKey("UserFlags")) + Convert.ToInt32(kvp["UserFlags"].ToString()); + if (kvp.ContainsKey("UserTitle")) + Email = kvp["UserTitle"].ToString(); + if (kvp.ContainsKey("Created")) Convert.ToInt32(kvp["Created"].ToString()); if (kvp.ContainsKey("ServiceURLs") && kvp["ServiceURLs"] != null) @@ -104,6 +119,10 @@ namespace OpenSim.Services.Interfaces result["PrincipalID"] = PrincipalID.ToString(); result["ScopeID"] = ScopeID.ToString(); result["Created"] = Created.ToString(); + result["UserLavel"] = UserLevel.ToString(); + result["UserFlags"] = UserFlags.ToString(); + result["UserTitle"] = UserTitle; + string str = string.Empty; foreach (KeyValuePair kvp in ServiceURLs) { -- cgit v1.1