* Added Created field to UserAccountData

slimupdates
Diva Canto 2009-12-28 20:29:52 -08:00
parent c164b85ea6
commit 18d93c2cee
1 changed files with 5 additions and 0 deletions

View File

@ -57,6 +57,8 @@ namespace OpenSim.Services.Interfaces
public int UserFlags; public int UserFlags;
public string AccountType; public string AccountType;
public DateTime Created;
public UserAccount(Dictionary<string, object> kvp) public UserAccount(Dictionary<string, object> kvp)
{ {
if (kvp.ContainsKey("FirstName")) if (kvp.ContainsKey("FirstName"))
@ -75,6 +77,8 @@ namespace OpenSim.Services.Interfaces
Int32.TryParse(kvp["UserFlags"].ToString(), out UserFlags); Int32.TryParse(kvp["UserFlags"].ToString(), out UserFlags);
if (kvp.ContainsKey("AccountType")) if (kvp.ContainsKey("AccountType"))
AccountType = kvp["AccountType"].ToString(); AccountType = kvp["AccountType"].ToString();
if (kvp.ContainsKey("Created"))
DateTime.TryParse(kvp["Created"].ToString(), out Created);
} }
@ -89,6 +93,7 @@ namespace OpenSim.Services.Interfaces
result["GodLevel"] = GodLevel.ToString(); result["GodLevel"] = GodLevel.ToString();
result["UserFlags"] = UserFlags.ToString(); result["UserFlags"] = UserFlags.ToString();
result["AccountType"] = AccountType.ToString(); result["AccountType"] = AccountType.ToString();
result["Created"] = Created.ToString();
return result; return result;
} }