public static DescribeRegionsResponse Unmarshall(UnmarshallerContext _ctx) { DescribeRegionsResponse describeRegionsResponse = new DescribeRegionsResponse(); describeRegionsResponse.HttpResponse = _ctx.HttpResponse; describeRegionsResponse.Code = _ctx.StringValue("DescribeRegions.code"); describeRegionsResponse.Message = _ctx.StringValue("DescribeRegions.message"); describeRegionsResponse.RequestId = _ctx.StringValue("DescribeRegions.requestId"); List <DescribeRegionsResponse.DescribeRegions_ResultItem> describeRegionsResponse_result = new List <DescribeRegionsResponse.DescribeRegions_ResultItem>(); for (int i = 0; i < _ctx.Length("DescribeRegions.Result.Length"); i++) { DescribeRegionsResponse.DescribeRegions_ResultItem resultItem = new DescribeRegionsResponse.DescribeRegions_ResultItem(); resultItem.ConsoleUrl = _ctx.StringValue("DescribeRegions.Result[" + i + "].consoleUrl"); resultItem.Endpoint = _ctx.StringValue("DescribeRegions.Result[" + i + "].endpoint"); resultItem.LocalName = _ctx.StringValue("DescribeRegions.Result[" + i + "].localName"); resultItem.RegionId = _ctx.StringValue("DescribeRegions.Result[" + i + "].regionId"); resultItem.Status = _ctx.StringValue("DescribeRegions.Result[" + i + "].status"); describeRegionsResponse_result.Add(resultItem); } describeRegionsResponse.Result = describeRegionsResponse_result; return(describeRegionsResponse); }
public static DescribeRegionsResponse Unmarshall(UnmarshallerContext context) { DescribeRegionsResponse describeRegionsResponse = new DescribeRegionsResponse(); describeRegionsResponse.HttpResponse = context.HttpResponse; describeRegionsResponse.RequestId = context.StringValue("DescribeRegions.RequestId"); describeRegionsResponse.Success = context.BooleanValue("DescribeRegions.Success"); describeRegionsResponse.ErrorCode = context.IntegerValue("DescribeRegions.ErrorCode"); List <DescribeRegionsResponse.DescribeRegions_ResultItem> describeRegionsResponse_result = new List <DescribeRegionsResponse.DescribeRegions_ResultItem>(); for (int i = 0; i < context.Length("DescribeRegions.Result.Length"); i++) { DescribeRegionsResponse.DescribeRegions_ResultItem resultItem = new DescribeRegionsResponse.DescribeRegions_ResultItem(); resultItem.Id = context.IntegerValue("DescribeRegions.Result[" + i + "].Id"); resultItem.RegionId = context.StringValue("DescribeRegions.Result[" + i + "].RegionId"); resultItem.Title = context.StringValue("DescribeRegions.Result[" + i + "].Title"); resultItem.Online = context.BooleanValue("DescribeRegions.Result[" + i + "].Online"); describeRegionsResponse_result.Add(resultItem); } describeRegionsResponse.Result = describeRegionsResponse_result; return(describeRegionsResponse); }