diff options
author | Sean Dague | 2008-05-16 18:23:13 +0000 |
---|---|---|
committer | Sean Dague | 2008-05-16 18:23:13 +0000 |
commit | a5fb0110410a849387addf0bb99a065b07397c6e (patch) | |
tree | 2723bb9ec754f4851d52fa81bd9f5becd728364f /OpenSim/Grid/UserServer/UserManager.cs | |
parent | * Minor: For no particularly good reason, make all console prompts conform to... (diff) | |
download | opensim-SC-a5fb0110410a849387addf0bb99a065b07397c6e.zip opensim-SC-a5fb0110410a849387addf0bb99a065b07397c6e.tar.gz opensim-SC-a5fb0110410a849387addf0bb99a065b07397c6e.tar.bz2 opensim-SC-a5fb0110410a849387addf0bb99a065b07397c6e.tar.xz |
in theory implement the backend of appearance for grid.
testers encouraged so I can track down issues.
Diffstat (limited to 'OpenSim/Grid/UserServer/UserManager.cs')
-rw-r--r-- | OpenSim/Grid/UserServer/UserManager.cs | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/OpenSim/Grid/UserServer/UserManager.cs b/OpenSim/Grid/UserServer/UserManager.cs index 8372d6a..63e77cf 100644 --- a/OpenSim/Grid/UserServer/UserManager.cs +++ b/OpenSim/Grid/UserServer/UserManager.cs | |||
@@ -247,6 +247,50 @@ namespace OpenSim.Grid.UserServer | |||
247 | return FriendListItemListtoXmlRPCResponse(returndata); | 247 | return FriendListItemListtoXmlRPCResponse(returndata); |
248 | } | 248 | } |
249 | 249 | ||
250 | public XmlRpcResponse XmlRPCGetAvatarAppearance(XmlRpcRequest request) | ||
251 | { | ||
252 | XmlRpcResponse response = new XmlRpcResponse(); | ||
253 | Hashtable requestData = (Hashtable)request.Params[0]; | ||
254 | AvatarAppearance appearance = null; | ||
255 | Hashtable responseData = null; | ||
256 | if (requestData.Contains("owner")) | ||
257 | { | ||
258 | appearance = GetUserAppearance(new LLUUID((string)requestData["owner"])); | ||
259 | responseData = appearance.ToHashTable(); | ||
260 | } | ||
261 | else | ||
262 | { | ||
263 | responseData = new Hashtable(); | ||
264 | responseData["error_type"] = "unknown_avatar"; | ||
265 | responseData["error_desc"] = "The avatar appearance requested is not in the database"; | ||
266 | } | ||
267 | |||
268 | response.Value = responseData; | ||
269 | return response; | ||
270 | } | ||
271 | |||
272 | public XmlRpcResponse XmlRPCUpdateAvatarAppearance(XmlRpcRequest request) | ||
273 | { | ||
274 | XmlRpcResponse response = new XmlRpcResponse(); | ||
275 | Hashtable requestData = (Hashtable)request.Params[0]; | ||
276 | Hashtable responseData = null; | ||
277 | if (requestData.Contains("owner")) | ||
278 | { | ||
279 | AvatarAppearance appearance = new AvatarAppearance(requestData); | ||
280 | UpdateUserAppearance(new LLUUID((string)requestData["owner"]), appearance); | ||
281 | responseData = new Hashtable(); | ||
282 | responseData["returnString"] = "TRUE"; | ||
283 | } | ||
284 | else | ||
285 | { | ||
286 | responseData = new Hashtable(); | ||
287 | responseData["error_type"] = "unknown_avatar"; | ||
288 | responseData["error_desc"] = "The avatar appearance requested is not in the database"; | ||
289 | } | ||
290 | response.Value = responseData; | ||
291 | return response; | ||
292 | } | ||
293 | |||
250 | public XmlRpcResponse XmlRPCGetUserMethodName(XmlRpcRequest request) | 294 | public XmlRpcResponse XmlRPCGetUserMethodName(XmlRpcRequest request) |
251 | { | 295 | { |
252 | XmlRpcResponse response = new XmlRpcResponse(); | 296 | XmlRpcResponse response = new XmlRpcResponse(); |