public Structs.MaxPlayers GetMaxPlayers() { GbxCall request = Client.Request("GetMaxPlayers", 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.MaxPlayers mp = new Structs.MaxPlayers(); mp.CurrentValue = (int)ht["CurrentValue"]; mp.NextValue = (int)ht["NextValue"]; return(mp); } else { return(new Structs.MaxPlayers()); } }
public Structs.MaxPlayers GetMaxPlayers() { GbxCall request = Client.Request("GetMaxPlayers", 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.MaxPlayers mp = new Structs.MaxPlayers(); mp.CurrentValue = (int)ht["CurrentValue"]; mp.NextValue = (int)ht["NextValue"]; return mp; } else { return new Structs.MaxPlayers(); } }