aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Interfaces
diff options
context:
space:
mode:
authorDiva Canto2009-12-28 20:53:20 -0800
committerDiva Canto2009-12-28 20:53:20 -0800
commitf40001f8eddd2bb2c1023e4c6eb1f3a7ae820720 (patch)
treee235d6ddc299bc5c286226c288daa4fe217defbe /OpenSim/Services/Interfaces
parentRemoved AccountType, GodLevel and UserFlags from UserAccountData. Doesn't bel... (diff)
downloadopensim-SC-f40001f8eddd2bb2c1023e4c6eb1f3a7ae820720.zip
opensim-SC-f40001f8eddd2bb2c1023e4c6eb1f3a7ae820720.tar.gz
opensim-SC-f40001f8eddd2bb2c1023e4c6eb1f3a7ae820720.tar.bz2
opensim-SC-f40001f8eddd2bb2c1023e4c6eb1f3a7ae820720.tar.xz
Added the ServiceURLs field to UserAccountData
Diffstat (limited to 'OpenSim/Services/Interfaces')
-rw-r--r--OpenSim/Services/Interfaces/IUserService.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Services/Interfaces/IUserService.cs b/OpenSim/Services/Interfaces/IUserService.cs
index e458178..ecbb344 100644
--- a/OpenSim/Services/Interfaces/IUserService.cs
+++ b/OpenSim/Services/Interfaces/IUserService.cs
@@ -48,6 +48,8 @@ namespace OpenSim.Services.Interfaces
48 public UUID UserID; 48 public UUID UserID;
49 public UUID ScopeID; 49 public UUID ScopeID;
50 50
51 public Dictionary<string, string> ServiceURLs;
52
51 public DateTime Created; 53 public DateTime Created;
52 54
53 public UserAccount(Dictionary<string, object> kvp) 55 public UserAccount(Dictionary<string, object> kvp)
@@ -64,6 +66,17 @@ namespace OpenSim.Services.Interfaces
64 UUID.TryParse(kvp["ScopeID"].ToString(), out ScopeID); 66 UUID.TryParse(kvp["ScopeID"].ToString(), out ScopeID);
65 if (kvp.ContainsKey("Created")) 67 if (kvp.ContainsKey("Created"))
66 DateTime.TryParse(kvp["Created"].ToString(), out Created); 68 DateTime.TryParse(kvp["Created"].ToString(), out Created);
69 if (kvp.ContainsKey("ServiceURLs") && kvp["ServiceURLs"] != null)
70 {
71 if (kvp["ServiceURLs"] is Dictionary<string, string>)
72 {
73 ServiceURLs = new Dictionary<string, string>();
74 foreach (KeyValuePair<string, string> urls in (Dictionary<string, string>)kvp["ServiceURLs"])
75 {
76 ServiceURLs.Add(urls.Key, urls.Value);
77 }
78 }
79 }
67 80
68 } 81 }
69 82
@@ -76,6 +89,7 @@ namespace OpenSim.Services.Interfaces
76 result["UserID"] = UserID.ToString(); 89 result["UserID"] = UserID.ToString();
77 result["ScopeID"] = ScopeID.ToString(); 90 result["ScopeID"] = ScopeID.ToString();
78 result["Created"] = Created.ToString(); 91 result["Created"] = Created.ToString();
92 result["ServiceURLs"] = ServiceURLs;
79 93
80 return result; 94 return result;
81 } 95 }