public static QuerySmsStatisticsResponse Unmarshall(UnmarshallerContext context) { QuerySmsStatisticsResponse querySmsStatisticsResponse = new QuerySmsStatisticsResponse() { HttpResponse = context.HttpResponse, RequestId = context.StringValue("QuerySmsStatistics.RequestId"), TotalCount = context.IntegerValue("QuerySmsStatistics.TotalCount") }; List <QuerySmsStatisticsResponse.Stat> data = new List <QuerySmsStatisticsResponse.Stat>(); for (int i = 0; i < context.Length("QuerySmsStatistics.data.Length"); i++) { QuerySmsStatisticsResponse.Stat stat = new QuerySmsStatisticsResponse.Stat() { CreateTime = context.StringValue($"QuerySmsStatistics.data[{i}].CreateTime"), RequestCount = context.StringValue($"QuerySmsStatistics.data[{i}].requestCount"), SuccessCount = context.StringValue($"QuerySmsStatistics.data[{i}].successCount"), FaildCount = context.StringValue($"QuerySmsStatistics.data[{i}].faildCount") }; data.Add(stat); } querySmsStatisticsResponse.Data = data; return(querySmsStatisticsResponse); }
public static QuerySmsStatisticsResponse Unmarshall(UnmarshallerContext context) { QuerySmsStatisticsResponse querySmsStatisticsResponse = new QuerySmsStatisticsResponse(); querySmsStatisticsResponse.HttpResponse = context.HttpResponse; querySmsStatisticsResponse.RequestId = context.StringValue("QuerySmsStatistics.RequestId"); querySmsStatisticsResponse.TotalCount = context.IntegerValue("QuerySmsStatistics.TotalCount"); List <QuerySmsStatisticsResponse.QuerySmsStatistics_Stat> querySmsStatisticsResponse_data = new List <QuerySmsStatisticsResponse.QuerySmsStatistics_Stat>(); for (int i = 0; i < context.Length("QuerySmsStatistics.Data.Length"); i++) { QuerySmsStatisticsResponse.QuerySmsStatistics_Stat stat = new QuerySmsStatisticsResponse.QuerySmsStatistics_Stat(); stat.CreateTime = context.StringValue("QuerySmsStatistics.Data[" + i + "].CreateTime"); stat.RequestCount = context.StringValue("QuerySmsStatistics.Data[" + i + "].RequestCount"); stat.SuccessCount = context.StringValue("QuerySmsStatistics.Data[" + i + "].SuccessCount"); stat.FaildCount = context.StringValue("QuerySmsStatistics.Data[" + i + "].FaildCount"); querySmsStatisticsResponse_data.Add(stat); } querySmsStatisticsResponse.Data = querySmsStatisticsResponse_data; return(querySmsStatisticsResponse); }