Aurora.Addon.HyperGrid.HypergridHandlers.LinkRegionRequest C# (CSharp) Method

LinkRegionRequest() public method

Someone wants to link to us
public LinkRegionRequest ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse
        public XmlRpcResponse LinkRegionRequest(XmlRpcRequest request, IPEndPoint remoteClient)
        {
            Hashtable requestData = (Hashtable)request.Params[0];
            //string host = (string)requestData["host"];
            //string portstr = (string)requestData["port"];
            string name = (string)requestData["region_name"];
            if (name == null)
                name = string.Empty;

            UUID regionID = UUID.Zero;
            string externalName = string.Empty;
            string imageURL = string.Empty;
            ulong regionHandle = 0;
            string reason = string.Empty;

            bool success = m_GatekeeperService.LinkRegion (name, out regionID, out regionHandle, out externalName, out imageURL, out reason);

            Hashtable hash = new Hashtable ();
            hash["result"] = success.ToString ();
            hash["uuid"] = regionID.ToString ();
            hash["handle"] = regionHandle.ToString ();
            hash["region_image"] = imageURL;
            hash["external_name"] = externalName;

            XmlRpcResponse response = new XmlRpcResponse ();
            response.Value = hash;
            return response;
        }