示例#1
0
        public static DescribeDomainListResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDomainListResponse describeDomainListResponse = new DescribeDomainListResponse();

            describeDomainListResponse.HttpResponse = context.HttpResponse;
            describeDomainListResponse.RequestId    = context.StringValue("DescribeDomainList.RequestId");

            DescribeDomainListResponse.DescribeDomainList_PageInfo pageInfo = new DescribeDomainListResponse.DescribeDomainList_PageInfo();
            pageInfo.Count       = context.IntegerValue("DescribeDomainList.PageInfo.Count");
            pageInfo.PageSize    = context.IntegerValue("DescribeDomainList.PageInfo.PageSize");
            pageInfo.TotalCount  = context.IntegerValue("DescribeDomainList.PageInfo.TotalCount");
            pageInfo.CurrentPage = context.IntegerValue("DescribeDomainList.PageInfo.CurrentPage");
            describeDomainListResponse.PageInfo = pageInfo;

            List <DescribeDomainListResponse.DescribeDomainList_DomainResponse> describeDomainListResponse_domainListResponseList = new List <DescribeDomainListResponse.DescribeDomainList_DomainResponse>();

            for (int i = 0; i < context.Length("DescribeDomainList.DomainListResponseList.Length"); i++)
            {
                DescribeDomainListResponse.DescribeDomainList_DomainResponse domainResponse = new DescribeDomainListResponse.DescribeDomainList_DomainResponse();
                domainResponse.Domain = context.StringValue("DescribeDomainList.DomainListResponseList[" + i + "].Domain");
                domainResponse.IpList = context.StringValue("DescribeDomainList.DomainListResponseList[" + i + "].IpList");

                describeDomainListResponse_domainListResponseList.Add(domainResponse);
            }
            describeDomainListResponse.DomainListResponseList = describeDomainListResponse_domainListResponseList;

            return(describeDomainListResponse);
        }
示例#2
0
        public static DescribeDomainListResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeDomainListResponse describeDomainListResponse = new DescribeDomainListResponse();

            describeDomainListResponse.HttpResponse = _ctx.HttpResponse;
            describeDomainListResponse.RequestId    = _ctx.StringValue("DescribeDomainList.RequestId");
            describeDomainListResponse.TotalCount   = _ctx.IntegerValue("DescribeDomainList.TotalCount");

            List <string> describeDomainListResponse_domainNames = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeDomainList.DomainNames.Length"); i++)
            {
                describeDomainListResponse_domainNames.Add(_ctx.StringValue("DescribeDomainList.DomainNames[" + i + "]"));
            }
            describeDomainListResponse.DomainNames = describeDomainListResponse_domainNames;

            return(describeDomainListResponse);
        }