diff options
author | Diva Canto | 2009-12-29 08:06:07 -0800 |
---|---|---|
committer | Diva Canto | 2009-12-29 08:06:07 -0800 |
commit | a462e440d5b5dca97f9b32fa41e24d763456ce97 (patch) | |
tree | d339c6e4e9b2426000910a9f75fc3f6c72b4debd /OpenSim/Services | |
parent | Added the ServiceURLs field to UserAccountData (diff) | |
download | opensim-SC-a462e440d5b5dca97f9b32fa41e24d763456ce97.zip opensim-SC-a462e440d5b5dca97f9b32fa41e24d763456ce97.tar.gz opensim-SC-a462e440d5b5dca97f9b32fa41e24d763456ce97.tar.bz2 opensim-SC-a462e440d5b5dca97f9b32fa41e24d763456ce97.tar.xz |
Better way of setting ServiceURLs
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/Interfaces/IUserService.cs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/OpenSim/Services/Interfaces/IUserService.cs b/OpenSim/Services/Interfaces/IUserService.cs index ecbb344..8279b9a 100644 --- a/OpenSim/Services/Interfaces/IUserService.cs +++ b/OpenSim/Services/Interfaces/IUserService.cs | |||
@@ -66,18 +66,8 @@ namespace OpenSim.Services.Interfaces | |||
66 | UUID.TryParse(kvp["ScopeID"].ToString(), out ScopeID); | 66 | UUID.TryParse(kvp["ScopeID"].ToString(), out ScopeID); |
67 | if (kvp.ContainsKey("Created")) | 67 | if (kvp.ContainsKey("Created")) |
68 | DateTime.TryParse(kvp["Created"].ToString(), out Created); | 68 | DateTime.TryParse(kvp["Created"].ToString(), out Created); |
69 | if (kvp.ContainsKey("ServiceURLs") && kvp["ServiceURLs"] != null) | 69 | if (kvp.ContainsKey("ServiceURLs") && kvp["ServiceURLs"] != null && (kvp["ServiceURLs"] is Dictionary<string, string>)) |
70 | { | 70 | ServiceURLs = (Dictionary<string, string>)kvp["ServiceURLs"]; |
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 | } | ||
80 | |||
81 | } | 71 | } |
82 | 72 | ||
83 | public Dictionary<string, object> ToKeyValuePairs() | 73 | public Dictionary<string, object> ToKeyValuePairs() |