public static DescribeCdnTypesResponse Unmarshall(UnmarshallerContext _ctx) { DescribeCdnTypesResponse describeCdnTypesResponse = new DescribeCdnTypesResponse(); describeCdnTypesResponse.HttpResponse = _ctx.HttpResponse; describeCdnTypesResponse.RequestId = _ctx.StringValue("DescribeCdnTypes.RequestId"); List <DescribeCdnTypesResponse.DescribeCdnTypes_CdnType> describeCdnTypesResponse_cdnTypes = new List <DescribeCdnTypesResponse.DescribeCdnTypes_CdnType>(); for (int i = 0; i < _ctx.Length("DescribeCdnTypes.CdnTypes.Length"); i++) { DescribeCdnTypesResponse.DescribeCdnTypes_CdnType cdnType = new DescribeCdnTypesResponse.DescribeCdnTypes_CdnType(); cdnType.Type = _ctx.StringValue("DescribeCdnTypes.CdnTypes[" + i + "].Type"); cdnType.Desc = _ctx.StringValue("DescribeCdnTypes.CdnTypes[" + i + "].Desc"); describeCdnTypesResponse_cdnTypes.Add(cdnType); } describeCdnTypesResponse.CdnTypes = describeCdnTypesResponse_cdnTypes; return(describeCdnTypesResponse); }
public static DescribeCdnTypesResponse Unmarshall(UnmarshallerContext context) { DescribeCdnTypesResponse describeCdnTypesResponse = new DescribeCdnTypesResponse() { HttpResponse = context.HttpResponse, RequestId = context.StringValue("DescribeCdnTypes.RequestId") }; List <DescribeCdnTypesResponse.CdnType> cdnTypes = new List <DescribeCdnTypesResponse.CdnType>(); for (int i = 0; i < context.Length("DescribeCdnTypes.CdnTypes.Length"); i++) { DescribeCdnTypesResponse.CdnType cdnType = new DescribeCdnTypesResponse.CdnType() { Type = context.StringValue($"DescribeCdnTypes.CdnTypes[{i}].Type"), Desc = context.StringValue($"DescribeCdnTypes.CdnTypes[{i}].Desc") }; cdnTypes.Add(cdnType); } describeCdnTypesResponse.CdnTypes = cdnTypes; return(describeCdnTypesResponse); }