public static QueryPushStatByMsgResponse Unmarshall(UnmarshallerContext context) { QueryPushStatByMsgResponse queryPushStatByMsgResponse = new QueryPushStatByMsgResponse() { HttpResponse = context.HttpResponse, RequestId = context.StringValue("QueryPushStatByMsg.RequestId") }; List <QueryPushStatByMsgResponse.PushStat> pushStats = new List <QueryPushStatByMsgResponse.PushStat>(); for (int i = 0; i < context.Length("QueryPushStatByMsg.PushStats.Length"); i++) { QueryPushStatByMsgResponse.PushStat pushStat = new QueryPushStatByMsgResponse.PushStat() { MessageId = context.StringValue($"QueryPushStatByMsg.PushStats[{i}].MessageId"), SentCount = context.LongValue($"QueryPushStatByMsg.PushStats[{i}].SentCount"), ReceivedCount = context.LongValue($"QueryPushStatByMsg.PushStats[{i}].ReceivedCount"), OpenedCount = context.LongValue($"QueryPushStatByMsg.PushStats[{i}].OpenedCount"), DeletedCount = context.LongValue($"QueryPushStatByMsg.PushStats[{i}].DeletedCount") }; pushStats.Add(pushStat); } queryPushStatByMsgResponse.PushStats = pushStats; return(queryPushStatByMsgResponse); }
public static QueryPushStatByMsgResponse Unmarshall(UnmarshallerContext context) { QueryPushStatByMsgResponse queryPushStatByMsgResponse = new QueryPushStatByMsgResponse(); queryPushStatByMsgResponse.HttpResponse = context.HttpResponse; queryPushStatByMsgResponse.RequestId = context.StringValue("QueryPushStatByMsg.RequestId"); List<QueryPushStatByMsgResponse.PushStat> pushStats = new List<QueryPushStatByMsgResponse.PushStat>(); for (int i = 0; i < context.Length("QueryPushStatByMsg.PushStats.Length"); i++) { QueryPushStatByMsgResponse.PushStat pushStat = new QueryPushStatByMsgResponse.PushStat(); pushStat.MessageId = context.StringValue("QueryPushStatByMsg.PushStats["+ i +"].MessageId"); pushStat.SentCount = context.LongValue("QueryPushStatByMsg.PushStats["+ i +"].SentCount"); pushStat.ReceivedCount = context.LongValue("QueryPushStatByMsg.PushStats["+ i +"].ReceivedCount"); pushStat.OpenedCount = context.LongValue("QueryPushStatByMsg.PushStats["+ i +"].OpenedCount"); pushStat.DeletedCount = context.LongValue("QueryPushStatByMsg.PushStats["+ i +"].DeletedCount"); pushStats.Add(pushStat); } queryPushStatByMsgResponse.PushStats = pushStats; return queryPushStatByMsgResponse; }