Example #1
0
        public Structs.MaxSpectators GetMaxSpectators()
        {
            GbxCall request = Client.Request("GetMaxSpectators", 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.MaxSpectators ms = new Structs.MaxSpectators();
                ms.CurrentValue = (int)ht["CurrentValue"];
                ms.NextValue    = (int)ht["NextValue"];
                return(ms);
            }
            else
            {
                return(new Structs.MaxSpectators());
            }
        }
        public Structs.MaxSpectators GetMaxSpectators()
        {
            GbxCall request = Client.Request("GetMaxSpectators", 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.MaxSpectators ms = new Structs.MaxSpectators();
                ms.CurrentValue = (int)ht["CurrentValue"];
                ms.NextValue = (int)ht["NextValue"];
                return ms;
            }
            else
            {
                return new Structs.MaxSpectators();
            }
        }