diff options
author | Melanie | 2011-01-24 02:16:28 +0100 |
---|---|---|
committer | Melanie | 2011-01-24 02:16:28 +0100 |
commit | dbbf43663e688b136d806965edfb82b4cd9e3e91 (patch) | |
tree | 48a3ffa0bf6a29a80edb34632aabd3451fdf9a55 /OpenSim/Services | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
download | opensim-SC_OLD-dbbf43663e688b136d806965edfb82b4cd9e3e91.zip opensim-SC_OLD-dbbf43663e688b136d806965edfb82b4cd9e3e91.tar.gz opensim-SC_OLD-dbbf43663e688b136d806965edfb82b4cd9e3e91.tar.bz2 opensim-SC_OLD-dbbf43663e688b136d806965edfb82b4cd9e3e91.tar.xz |
Add a careminster API to scripting again
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/Interfaces/IUserAccountService.cs | 4 | ||||
-rw-r--r-- | OpenSim/Services/UserAccountService/UserAccountService.cs | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Services/Interfaces/IUserAccountService.cs b/OpenSim/Services/Interfaces/IUserAccountService.cs index 80258d6..a91aa0f 100644 --- a/OpenSim/Services/Interfaces/IUserAccountService.cs +++ b/OpenSim/Services/Interfaces/IUserAccountService.cs | |||
@@ -63,6 +63,7 @@ namespace OpenSim.Services.Interfaces | |||
63 | public int UserLevel; | 63 | public int UserLevel; |
64 | public int UserFlags; | 64 | public int UserFlags; |
65 | public string UserTitle; | 65 | public string UserTitle; |
66 | public string UserCountry; | ||
66 | 67 | ||
67 | public Dictionary<string, object> ServiceURLs; | 68 | public Dictionary<string, object> ServiceURLs; |
68 | 69 | ||
@@ -91,6 +92,8 @@ namespace OpenSim.Services.Interfaces | |||
91 | UserFlags = Convert.ToInt32(kvp["UserFlags"].ToString()); | 92 | UserFlags = Convert.ToInt32(kvp["UserFlags"].ToString()); |
92 | if (kvp.ContainsKey("UserTitle")) | 93 | if (kvp.ContainsKey("UserTitle")) |
93 | UserTitle = kvp["UserTitle"].ToString(); | 94 | UserTitle = kvp["UserTitle"].ToString(); |
95 | if (kvp.ContainsKey("UserCountry")) | ||
96 | UserCountry = kvp["UserCountry"].ToString(); | ||
94 | 97 | ||
95 | if (kvp.ContainsKey("Created")) | 98 | if (kvp.ContainsKey("Created")) |
96 | Created = Convert.ToInt32(kvp["Created"].ToString()); | 99 | Created = Convert.ToInt32(kvp["Created"].ToString()); |
@@ -124,6 +127,7 @@ namespace OpenSim.Services.Interfaces | |||
124 | result["UserLevel"] = UserLevel.ToString(); | 127 | result["UserLevel"] = UserLevel.ToString(); |
125 | result["UserFlags"] = UserFlags.ToString(); | 128 | result["UserFlags"] = UserFlags.ToString(); |
126 | result["UserTitle"] = UserTitle; | 129 | result["UserTitle"] = UserTitle; |
130 | result["UserCountry"] = UserCountry; | ||
127 | 131 | ||
128 | string str = string.Empty; | 132 | string str = string.Empty; |
129 | foreach (KeyValuePair<string, object> kvp in ServiceURLs) | 133 | foreach (KeyValuePair<string, object> kvp in ServiceURLs) |
diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs index de6d32c..cbd6f35 100644 --- a/OpenSim/Services/UserAccountService/UserAccountService.cs +++ b/OpenSim/Services/UserAccountService/UserAccountService.cs | |||
@@ -148,6 +148,10 @@ namespace OpenSim.Services.UserAccountService | |||
148 | Int32.TryParse(d.Data["UserLevel"], out u.UserLevel); | 148 | Int32.TryParse(d.Data["UserLevel"], out u.UserLevel); |
149 | if (d.Data.ContainsKey("UserFlags") && d.Data["UserFlags"] != null) | 149 | if (d.Data.ContainsKey("UserFlags") && d.Data["UserFlags"] != null) |
150 | Int32.TryParse(d.Data["UserFlags"], out u.UserFlags); | 150 | Int32.TryParse(d.Data["UserFlags"], out u.UserFlags); |
151 | if (d.Data.ContainsKey("UserCountry") && d.Data["UserCountry"] != null) | ||
152 | u.UserCountry = d.Data["UserCountry"].ToString(); | ||
153 | else | ||
154 | u.UserTitle = string.Empty; | ||
151 | 155 | ||
152 | if (d.Data.ContainsKey("ServiceURLs") && d.Data["ServiceURLs"] != null) | 156 | if (d.Data.ContainsKey("ServiceURLs") && d.Data["ServiceURLs"] != null) |
153 | { | 157 | { |