public static GetStatisticsResponse Unmarshall(UnmarshallerContext context)
        {
            GetStatisticsResponse getStatisticsResponse = new GetStatisticsResponse();

            getStatisticsResponse.HttpResponse = context.HttpResponse;
            getStatisticsResponse.RequestId    = context.StringValue("GetStatistics.RequestId");
            getStatisticsResponse.Code         = context.StringValue("GetStatistics.Code");
            getStatisticsResponse.Success      = context.BooleanValue("GetStatistics.Success");
            getStatisticsResponse.Message      = context.StringValue("GetStatistics.Message");

            GetStatisticsResponse.GetStatistics_Data data = new GetStatisticsResponse.GetStatistics_Data();
            data.Account = context.IntegerValue("GetStatistics.Data.Account");
            data.Health  = context.IntegerValue("GetStatistics.Data.Health");
            data.Patch   = context.IntegerValue("GetStatistics.Data.Patch");
            data.Trojan  = context.IntegerValue("GetStatistics.Data.Trojan");
            getStatisticsResponse.Data = data;

            return(getStatisticsResponse);
        }
        public static GetStatisticsResponse Unmarshall(UnmarshallerContext _ctx)
        {
            GetStatisticsResponse getStatisticsResponse = new GetStatisticsResponse();

            getStatisticsResponse.HttpResponse = _ctx.HttpResponse;
            getStatisticsResponse.Code         = _ctx.StringValue("GetStatistics.Code");
            getStatisticsResponse.Message      = _ctx.StringValue("GetStatistics.Message");
            getStatisticsResponse.RequestId    = _ctx.StringValue("GetStatistics.RequestId");

            GetStatisticsResponse.GetStatistics_Data data = new GetStatisticsResponse.GetStatistics_Data();

            List <GetStatisticsResponse.GetStatistics_Data.GetStatistics_ItemsItem> data_items = new List <GetStatisticsResponse.GetStatistics_Data.GetStatistics_ItemsItem>();

            for (int i = 0; i < _ctx.Length("GetStatistics.Data.Items.Length"); i++)
            {
                GetStatisticsResponse.GetStatistics_Data.GetStatistics_ItemsItem itemsItem = new GetStatisticsResponse.GetStatistics_Data.GetStatistics_ItemsItem();
                itemsItem.ClientCount    = _ctx.LongValue("GetStatistics.Data.Items[" + i + "].ClientCount");
                itemsItem.CloudCount     = _ctx.LongValue("GetStatistics.Data.Items[" + i + "].CloudCount");
                itemsItem.DepartmentName = _ctx.StringValue("GetStatistics.Data.Items[" + i + "].DepartmentName");
                itemsItem.Month          = _ctx.StringValue("GetStatistics.Data.Items[" + i + "].Month");

                List <GetStatisticsResponse.GetStatistics_Data.GetStatistics_ItemsItem.GetStatistics_DetailItem> itemsItem_detail = new List <GetStatisticsResponse.GetStatistics_Data.GetStatistics_ItemsItem.GetStatistics_DetailItem>();
                for (int j = 0; j < _ctx.Length("GetStatistics.Data.Items[" + i + "].Detail.Length"); j++)
                {
                    GetStatisticsResponse.GetStatistics_Data.GetStatistics_ItemsItem.GetStatistics_DetailItem detailItem = new GetStatisticsResponse.GetStatistics_Data.GetStatistics_ItemsItem.GetStatistics_DetailItem();
                    detailItem.ClientCount    = _ctx.LongValue("GetStatistics.Data.Items[" + i + "].Detail[" + j + "].ClientCount");
                    detailItem.CloudCount     = _ctx.LongValue("GetStatistics.Data.Items[" + i + "].Detail[" + j + "].CloudCount");
                    detailItem.DepartmentId   = _ctx.StringValue("GetStatistics.Data.Items[" + i + "].Detail[" + j + "].DepartmentId");
                    detailItem.DepartmentName = _ctx.StringValue("GetStatistics.Data.Items[" + i + "].Detail[" + j + "].DepartmentName");
                    detailItem.Month          = _ctx.IntegerValue("GetStatistics.Data.Items[" + i + "].Detail[" + j + "].Month");

                    itemsItem_detail.Add(detailItem);
                }
                itemsItem.Detail = itemsItem_detail;

                data_items.Add(itemsItem);
            }
            data.Items = data_items;
            getStatisticsResponse.Data = data;

            return(getStatisticsResponse);
        }