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()); }
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(); }