From f40001f8eddd2bb2c1023e4c6eb1f3a7ae820720 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Mon, 28 Dec 2009 20:53:20 -0800 Subject: Added the ServiceURLs field to UserAccountData --- OpenSim/Services/Interfaces/IUserService.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim/Services/Interfaces/IUserService.cs') 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 public UUID UserID; public UUID ScopeID; + public Dictionary ServiceURLs; + public DateTime Created; public UserAccount(Dictionary kvp) @@ -64,6 +66,17 @@ namespace OpenSim.Services.Interfaces UUID.TryParse(kvp["ScopeID"].ToString(), out ScopeID); if (kvp.ContainsKey("Created")) DateTime.TryParse(kvp["Created"].ToString(), out Created); + if (kvp.ContainsKey("ServiceURLs") && kvp["ServiceURLs"] != null) + { + if (kvp["ServiceURLs"] is Dictionary) + { + ServiceURLs = new Dictionary(); + foreach (KeyValuePair urls in (Dictionary)kvp["ServiceURLs"]) + { + ServiceURLs.Add(urls.Key, urls.Value); + } + } + } } @@ -76,6 +89,7 @@ namespace OpenSim.Services.Interfaces result["UserID"] = UserID.ToString(); result["ScopeID"] = ScopeID.ToString(); result["Created"] = Created.ToString(); + result["ServiceURLs"] = ServiceURLs; return result; } -- cgit v1.1