Esempio n. 1
0
        public ShootManiaXMLRPC.Structs.ScriptName GetScriptName()
        {
            GbxCall request = Client.Request("GetScriptName", new object[] { });

            GbxCall response = Client.GetResponse(request.Handle);

            if (response.Params.Count == 1 &&
                response.Params[0].GetType() == typeof(Hashtable))
            {
                Hashtable          ht = (Hashtable)response.Params[0];
                Structs.ScriptName sn = new Structs.ScriptName();
                sn.CurrentValue = (string)ht["CurrentValue"];
                sn.NextValue    = (string)ht["NextValue"];
                return(sn);
            }

            return(new Structs.ScriptName());
        }
Esempio n. 2
0
        public ShootManiaXMLRPC.Structs.ScriptName GetScriptName()
        {
            GbxCall request = Client.Request("GetScriptName", new object[] { });

            GbxCall response = Client.GetResponse(request.Handle);

            if (response.Params.Count == 1 &&
                response.Params[0].GetType() == typeof(Hashtable))
            {
                Hashtable ht = (Hashtable)response.Params[0];
                Structs.ScriptName sn = new Structs.ScriptName();
                sn.CurrentValue = (string)ht["CurrentValue"];
                sn.NextValue = (string)ht["NextValue"];
                return sn;
            }

            return new Structs.ScriptName();
        }