Ejemplo n.º 1
0
        public List <Structs.BanList> GetBanList(int MaxResults, int StartIndex)
        {
            List <Structs.BanList> Result = new List <Structs.BanList>();

            GbxCall request = Client.Request("GetBanList", new object[] { MaxResults, StartIndex });

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

            if (response.Params.Count == 1 &&
                response.Params[0].GetType() == typeof(ArrayList))
            {
                foreach (Hashtable ht in (ArrayList)response.Params[0])
                {
                    Structs.BanList bl = new Structs.BanList();
                    bl.Login      = (string)ht["Login"];
                    bl.ClientName = (string)ht["ClientName"];
                    bl.IPAddress  = (string)ht["IPAddress"];
                    Result.Add(bl);
                }
            }

            return(Result);
        }
Ejemplo n.º 2
0
        public List<Structs.BanList> GetBanList(int MaxResults, int StartIndex)
        {
            List<Structs.BanList> Result = new List<Structs.BanList>();

            GbxCall request = Client.Request("GetBanList", new object[] { MaxResults, StartIndex });

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

            if (response.Params.Count == 1 &&
                response.Params[0].GetType() == typeof(ArrayList))
            {
                foreach (Hashtable ht in (ArrayList)response.Params[0])
                {
                    Structs.BanList bl = new Structs.BanList();
                    bl.Login = (string)ht["Login"];
                    bl.ClientName = (string)ht["ClientName"];
                    bl.IPAddress = (string)ht["IPAddress"];
                    Result.Add(bl);
                }
            }

            return Result;
        }