From 42f5394677a0a033e501f343cc3ccf02627e09d8 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Thu, 29 Dec 2011 15:39:12 -0800 Subject: Added field LocalToGrid in UserAccount. Context: make HG work in Simian. --- OpenSim/Services/Interfaces/IUserAccountService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/Services/Interfaces') diff --git a/OpenSim/Services/Interfaces/IUserAccountService.cs b/OpenSim/Services/Interfaces/IUserAccountService.cs index 6cc8eb8..4f80549 100644 --- a/OpenSim/Services/Interfaces/IUserAccountService.cs +++ b/OpenSim/Services/Interfaces/IUserAccountService.cs @@ -37,11 +37,13 @@ namespace OpenSim.Services.Interfaces { public UserAccount() { + LocalToGrid = true; } public UserAccount(UUID principalID) { PrincipalID = principalID; + LocalToGrid = true; } /// @@ -70,6 +72,7 @@ namespace OpenSim.Services.Interfaces Email = email; ServiceURLs = new Dictionary(); Created = Util.UnixTimeSinceEpoch(); + LocalToGrid = true; } public UserAccount(UUID scopeID, UUID principalID, string firstName, string lastName, string email) @@ -81,6 +84,7 @@ namespace OpenSim.Services.Interfaces Email = email; ServiceURLs = new Dictionary(); Created = Util.UnixTimeSinceEpoch(); + LocalToGrid = true; } public string FirstName; @@ -91,6 +95,7 @@ namespace OpenSim.Services.Interfaces public int UserLevel; public int UserFlags; public string UserTitle; + public Boolean LocalToGrid; public Dictionary ServiceURLs; @@ -119,6 +124,8 @@ namespace OpenSim.Services.Interfaces UserFlags = Convert.ToInt32(kvp["UserFlags"].ToString()); if (kvp.ContainsKey("UserTitle")) UserTitle = kvp["UserTitle"].ToString(); + if (kvp.ContainsKey("LocalToGrid")) + Boolean.TryParse(kvp["LocalToGrid"].ToString(), out LocalToGrid); if (kvp.ContainsKey("Created")) Created = Convert.ToInt32(kvp["Created"].ToString()); @@ -152,6 +159,7 @@ namespace OpenSim.Services.Interfaces result["UserLevel"] = UserLevel.ToString(); result["UserFlags"] = UserFlags.ToString(); result["UserTitle"] = UserTitle; + result["LocalToGrid"] = LocalToGrid.ToString(); string str = string.Empty; foreach (KeyValuePair kvp in ServiceURLs) -- cgit v1.1