public XmlRpcResponse XmlRpcResponseXmlRPCAddUserFriend(XmlRpcRequest request, IPEndPoint remoteClient) { // Check IP Endpoint Access if (!TrustManager.Instance.IsTrustedPeer(remoteClient)) { return(Util.CreateTrustManagerAccessDeniedResponse()); } XmlRpcResponse response = new XmlRpcResponse(); Hashtable requestData = (Hashtable)request.Params[0]; Hashtable responseData = new Hashtable(); string returnString = "FALSE"; // Query Result Information if (requestData.Contains("ownerID") && requestData.Contains("friendID") && requestData.Contains("friendPerms")) { // UserManager.AddNewuserFriend m_userDataBaseService.AddNewUserFriend(new UUID((string)requestData["ownerID"]), new UUID((string)requestData["friendID"]), (uint)Convert.ToInt32((string)requestData["friendPerms"])); returnString = "TRUE"; } responseData["returnString"] = returnString; response.Value = responseData; return(response); }
public XmlRpcResponse XmlRpcResponseXmlRPCAddUserFriend(XmlRpcRequest request) { XmlRpcResponse response = new XmlRpcResponse(); Hashtable requestData = (Hashtable)request.Params[0]; Hashtable responseData = new Hashtable(); string returnString = "FALSE"; // Query Result Information if (requestData.Contains("ownerID") && requestData.Contains("friendID") && requestData.Contains("friendPerms")) { // UserManagerBase.AddNewuserFriend m_userDataBaseService.AddNewUserFriend(new UUID((string)requestData["ownerID"]), new UUID((string)requestData["friendID"]), (uint)Convert.ToInt32((string)requestData["friendPerms"])); returnString = "TRUE"; } responseData["returnString"] = returnString; response.Value = responseData; return(response); }