public static DescribeCdnDomainLogsResponse Unmarshall(UnmarshallerContext _ctx) { DescribeCdnDomainLogsResponse describeCdnDomainLogsResponse = new DescribeCdnDomainLogsResponse(); describeCdnDomainLogsResponse.HttpResponse = _ctx.HttpResponse; describeCdnDomainLogsResponse.RequestId = _ctx.StringValue("DescribeCdnDomainLogs.RequestId"); describeCdnDomainLogsResponse.PageNumber = _ctx.LongValue("DescribeCdnDomainLogs.PageNumber"); describeCdnDomainLogsResponse.PageSize = _ctx.LongValue("DescribeCdnDomainLogs.PageSize"); describeCdnDomainLogsResponse.TotalCount = _ctx.LongValue("DescribeCdnDomainLogs.TotalCount"); DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogModel domainLogModel = new DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogModel(); domainLogModel.DomainName = _ctx.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainName"); List <DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogModel.DescribeCdnDomainLogs_DomainLogDetail> domainLogModel_domainLogDetails = new List <DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogModel.DescribeCdnDomainLogs_DomainLogDetail>(); for (int i = 0; i < _ctx.Length("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails.Length"); i++) { DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogModel.DescribeCdnDomainLogs_DomainLogDetail domainLogDetail = new DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogModel.DescribeCdnDomainLogs_DomainLogDetail(); domainLogDetail.LogName = _ctx.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails[" + i + "].LogName"); domainLogDetail.LogPath = _ctx.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails[" + i + "].LogPath"); domainLogDetail.LogSize = _ctx.LongValue("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails[" + i + "].LogSize"); domainLogDetail.StartTime = _ctx.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails[" + i + "].StartTime"); domainLogDetail.EndTime = _ctx.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails[" + i + "].EndTime"); domainLogModel_domainLogDetails.Add(domainLogDetail); } domainLogModel.DomainLogDetails = domainLogModel_domainLogDetails; describeCdnDomainLogsResponse.DomainLogModel = domainLogModel; return(describeCdnDomainLogsResponse); }
public static DescribeCdnDomainLogsResponse Unmarshall(UnmarshallerContext context) { DescribeCdnDomainLogsResponse describeCdnDomainLogsResponse = new DescribeCdnDomainLogsResponse() { HttpResponse = context.HttpResponse, RequestId = context.StringValue("DescribeCdnDomainLogs.RequestId"), PageNumber = context.LongValue("DescribeCdnDomainLogs.PageNumber"), PageSize = context.LongValue("DescribeCdnDomainLogs.PageSize"), TotalCount = context.LongValue("DescribeCdnDomainLogs.TotalCount") }; DescribeCdnDomainLogsResponse.DomainLogModel_ domainLogModel = new DescribeCdnDomainLogsResponse.DomainLogModel_() { DomainName = context.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainName") }; List <DescribeCdnDomainLogsResponse.DomainLogModel_.DomainLogDetail> domainLogDetails = new List <DescribeCdnDomainLogsResponse.DomainLogModel_.DomainLogDetail>(); for (int i = 0; i < context.Length("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails.Length"); i++) { DescribeCdnDomainLogsResponse.DomainLogModel_.DomainLogDetail domainLogDetail = new DescribeCdnDomainLogsResponse.DomainLogModel_.DomainLogDetail() { LogName = context.StringValue($"DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails[{i}].LogName"), LogPath = context.StringValue($"DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails[{i}].LogPath"), LogSize = context.LongValue($"DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails[{i}].LogSize"), StartTime = context.StringValue($"DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails[{i}].StartTime"), EndTime = context.StringValue($"DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails[{i}].EndTime") }; domainLogDetails.Add(domainLogDetail); } domainLogModel.DomainLogDetails = domainLogDetails; describeCdnDomainLogsResponse.DomainLogModel = domainLogModel; return(describeCdnDomainLogsResponse); }
public static DescribeCdnDomainLogsResponse Unmarshall(UnmarshallerContext context) { DescribeCdnDomainLogsResponse describeCdnDomainLogsResponse = new DescribeCdnDomainLogsResponse(); describeCdnDomainLogsResponse.HttpResponse = context.HttpResponse; describeCdnDomainLogsResponse.RequestId = context.StringValue("DescribeCdnDomainLogs.RequestId"); List <DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogDetail> describeCdnDomainLogsResponse_domainLogDetails = new List <DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogDetail>(); for (int i = 0; i < context.Length("DescribeCdnDomainLogs.DomainLogDetails.Length"); i++) { DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogDetail domainLogDetail = new DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogDetail(); domainLogDetail.DomainName = context.StringValue("DescribeCdnDomainLogs.DomainLogDetails[" + i + "].DomainName"); domainLogDetail.LogCount = context.LongValue("DescribeCdnDomainLogs.DomainLogDetails[" + i + "].LogCount"); List <DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogDetail.DescribeCdnDomainLogs_PageInfoDetail> domainLogDetail_pageInfos = new List <DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogDetail.DescribeCdnDomainLogs_PageInfoDetail>(); for (int j = 0; j < context.Length("DescribeCdnDomainLogs.DomainLogDetails[" + i + "].PageInfos.Length"); j++) { DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogDetail.DescribeCdnDomainLogs_PageInfoDetail pageInfoDetail = new DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogDetail.DescribeCdnDomainLogs_PageInfoDetail(); pageInfoDetail.PageIndex = context.LongValue("DescribeCdnDomainLogs.DomainLogDetails[" + i + "].PageInfos[" + j + "].PageIndex"); pageInfoDetail.PageSize = context.LongValue("DescribeCdnDomainLogs.DomainLogDetails[" + i + "].PageInfos[" + j + "].PageSize"); pageInfoDetail.Total = context.LongValue("DescribeCdnDomainLogs.DomainLogDetails[" + i + "].PageInfos[" + j + "].Total"); domainLogDetail_pageInfos.Add(pageInfoDetail); } domainLogDetail.PageInfos = domainLogDetail_pageInfos; List <DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogDetail.DescribeCdnDomainLogs_LogInfoDetail> domainLogDetail_logInfos = new List <DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogDetail.DescribeCdnDomainLogs_LogInfoDetail>(); for (int j = 0; j < context.Length("DescribeCdnDomainLogs.DomainLogDetails[" + i + "].LogInfos.Length"); j++) { DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogDetail.DescribeCdnDomainLogs_LogInfoDetail logInfoDetail = new DescribeCdnDomainLogsResponse.DescribeCdnDomainLogs_DomainLogDetail.DescribeCdnDomainLogs_LogInfoDetail(); logInfoDetail.LogName = context.StringValue("DescribeCdnDomainLogs.DomainLogDetails[" + i + "].LogInfos[" + j + "].LogName"); logInfoDetail.LogPath = context.StringValue("DescribeCdnDomainLogs.DomainLogDetails[" + i + "].LogInfos[" + j + "].LogPath"); logInfoDetail.LogSize = context.LongValue("DescribeCdnDomainLogs.DomainLogDetails[" + i + "].LogInfos[" + j + "].LogSize"); logInfoDetail.StartTime = context.StringValue("DescribeCdnDomainLogs.DomainLogDetails[" + i + "].LogInfos[" + j + "].StartTime"); logInfoDetail.EndTime = context.StringValue("DescribeCdnDomainLogs.DomainLogDetails[" + i + "].LogInfos[" + j + "].EndTime"); domainLogDetail_logInfos.Add(logInfoDetail); } domainLogDetail.LogInfos = domainLogDetail_logInfos; describeCdnDomainLogsResponse_domainLogDetails.Add(domainLogDetail); } describeCdnDomainLogsResponse.DomainLogDetails = describeCdnDomainLogsResponse_domainLogDetails; return(describeCdnDomainLogsResponse); }