Aurora.Addon.HyperGrid.HGFriendsServicesConnector.GetFriendPerms C# (CSharp) Метод

GetFriendPerms() публичный Метод

public GetFriendPerms ( UUID PrincipalID, UUID friendID ) : uint
PrincipalID UUID
friendID UUID
Результат uint
        public uint GetFriendPerms(UUID PrincipalID, UUID friendID)
        {
            Dictionary<string, object> sendData = new Dictionary<string, object> ();

            sendData["PRINCIPALID"] = PrincipalID.ToString ();
            sendData["FRIENDID"] = friendID.ToString ();
            sendData["METHOD"] = "getfriendperms";
            sendData["KEY"] = m_ServiceKey;
            sendData["SESSIONID"] = m_SessionID.ToString ();

            string reqString = WebUtils.BuildQueryString (sendData);

            try
            {
                string reply = SynchronousRestFormsRequester.MakeRequest ("POST",
                        m_ServerURI + "/hgfriends",
                        reqString);
                if (reply != string.Empty)
                {
                    Dictionary<string, object> replyData = WebUtils.ParseXmlResponse (reply);

                    if ((replyData != null) && replyData.ContainsKey ("Value") && (replyData["Value"] != null))
                    {
                        uint perms = 0;
                        uint.TryParse (replyData["Value"].ToString (), out perms);
                        return perms;
                    }
                    else
                        MainConsole.Instance.DebugFormat ("[HGFRIENDS CONNECTOR]: GetFriendPerms {0} received null response",
                            PrincipalID);

                }
            }
            catch (Exception e)
            {
                MainConsole.Instance.DebugFormat ("[HGFRIENDS CONNECTOR]: Exception when contacting friends server: {0}", e.Message);
            }

            return 0;
        }