From b4483df2701483aabd43fc7d03ebd74770d70170 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Tue, 29 Dec 2009 15:58:40 -0800 Subject: * All modules and connectors for user account service are in place. Untested. * Cleaned up a few things on presence connectors --- .../Presence/PresenceServiceConnector.cs | 28 ++++++++++------------ 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'OpenSim/Services/Connectors/Presence/PresenceServiceConnector.cs') diff --git a/OpenSim/Services/Connectors/Presence/PresenceServiceConnector.cs b/OpenSim/Services/Connectors/Presence/PresenceServiceConnector.cs index 482862d..29cfd6e 100644 --- a/OpenSim/Services/Connectors/Presence/PresenceServiceConnector.cs +++ b/OpenSim/Services/Connectors/Presence/PresenceServiceConnector.cs @@ -109,9 +109,9 @@ namespace OpenSim.Services.Connectors { Dictionary replyData = ServerUtils.ParseXmlResponse(reply); - if (replyData.ContainsKey("Result")) + if (replyData.ContainsKey("result")) { - if (replyData["Result"].ToString().ToLower() == "success") + if (replyData["result"].ToString().ToLower() == "success") return true; else return false; @@ -153,9 +153,9 @@ namespace OpenSim.Services.Connectors { Dictionary replyData = ServerUtils.ParseXmlResponse(reply); - if (replyData.ContainsKey("Result")) + if (replyData.ContainsKey("result")) { - if (replyData["Result"].ToString().ToLower() == "success") + if (replyData["result"].ToString().ToLower() == "success") return true; else return false; @@ -196,9 +196,9 @@ namespace OpenSim.Services.Connectors { Dictionary replyData = ServerUtils.ParseXmlResponse(reply); - if (replyData.ContainsKey("Result")) + if (replyData.ContainsKey("result")) { - if (replyData["Result"].ToString().ToLower() == "success") + if (replyData["result"].ToString().ToLower() == "success") return true; else return false; @@ -242,9 +242,9 @@ namespace OpenSim.Services.Connectors { Dictionary replyData = ServerUtils.ParseXmlResponse(reply); - if (replyData.ContainsKey("Result")) + if (replyData.ContainsKey("result")) { - if (replyData["Result"].ToString().ToLower() == "success") + if (replyData["result"].ToString().ToLower() == "success") return true; else return false; @@ -296,11 +296,8 @@ namespace OpenSim.Services.Connectors Dictionary replyData = ServerUtils.ParseXmlResponse(reply); PresenceInfo pinfo = null; - if ((replyData != null) && (replyData["result"] != null)) + if ((replyData != null) && replyData.ContainsKey("result") && (replyData["result"] != null)) { - if (replyData["result"].ToString() == "null") - return null; - if (replyData["result"] is Dictionary) { pinfo = new PresenceInfo((Dictionary)replyData["result"]); @@ -345,7 +342,8 @@ namespace OpenSim.Services.Connectors if (replyData != null) { - if (replyData.ContainsKey("result") && replyData.ContainsKey("result").ToString() == "null") + if (replyData.ContainsKey("result") && + (replyData["result"].ToString() == "null" || replyData["result"].ToString() == "Failure")) { return new PresenceInfo[0]; } @@ -395,9 +393,9 @@ namespace OpenSim.Services.Connectors { Dictionary replyData = ServerUtils.ParseXmlResponse(reply); - if (replyData.ContainsKey("Result")) + if (replyData.ContainsKey("result")) { - if (replyData["Result"].ToString().ToLower() == "success") + if (replyData["result"].ToString().ToLower() == "success") return true; else return false; -- cgit v1.1