public static ListAgentStateLogsResponse Unmarshall(UnmarshallerContext _ctx) { ListAgentStateLogsResponse listAgentStateLogsResponse = new ListAgentStateLogsResponse(); listAgentStateLogsResponse.HttpResponse = _ctx.HttpResponse; listAgentStateLogsResponse.Code = _ctx.StringValue("ListAgentStateLogs.Code"); listAgentStateLogsResponse.HttpStatusCode = _ctx.IntegerValue("ListAgentStateLogs.HttpStatusCode"); listAgentStateLogsResponse.Message = _ctx.StringValue("ListAgentStateLogs.Message"); listAgentStateLogsResponse.RequestId = _ctx.StringValue("ListAgentStateLogs.RequestId"); List <ListAgentStateLogsResponse.ListAgentStateLogs_DataItem> listAgentStateLogsResponse_data = new List <ListAgentStateLogsResponse.ListAgentStateLogs_DataItem>(); for (int i = 0; i < _ctx.Length("ListAgentStateLogs.Data.Length"); i++) { ListAgentStateLogsResponse.ListAgentStateLogs_DataItem dataItem = new ListAgentStateLogsResponse.ListAgentStateLogs_DataItem(); dataItem.Duration = _ctx.LongValue("ListAgentStateLogs.Data[" + i + "].Duration"); dataItem.StartTime = _ctx.LongValue("ListAgentStateLogs.Data[" + i + "].StartTime"); dataItem.State = _ctx.StringValue("ListAgentStateLogs.Data[" + i + "].State"); dataItem.StateCode = _ctx.StringValue("ListAgentStateLogs.Data[" + i + "].StateCode"); listAgentStateLogsResponse_data.Add(dataItem); } listAgentStateLogsResponse.Data = listAgentStateLogsResponse_data; return(listAgentStateLogsResponse); }
public static ListAgentStateLogsResponse Unmarshall(UnmarshallerContext _ctx) { ListAgentStateLogsResponse listAgentStateLogsResponse = new ListAgentStateLogsResponse(); listAgentStateLogsResponse.HttpResponse = _ctx.HttpResponse; listAgentStateLogsResponse.RequestId = _ctx.StringValue("ListAgentStateLogs.RequestId"); listAgentStateLogsResponse.Success = _ctx.BooleanValue("ListAgentStateLogs.Success"); listAgentStateLogsResponse.Code = _ctx.StringValue("ListAgentStateLogs.Code"); listAgentStateLogsResponse.Message = _ctx.StringValue("ListAgentStateLogs.Message"); listAgentStateLogsResponse.HttpStatusCode = _ctx.IntegerValue("ListAgentStateLogs.HttpStatusCode"); ListAgentStateLogsResponse.ListAgentStateLogs_AgentStateLogPage agentStateLogPage = new ListAgentStateLogsResponse.ListAgentStateLogs_AgentStateLogPage(); agentStateLogPage.TotalCount = _ctx.IntegerValue("ListAgentStateLogs.AgentStateLogPage.TotalCount"); agentStateLogPage.PageNumber = _ctx.IntegerValue("ListAgentStateLogs.AgentStateLogPage.PageNumber"); agentStateLogPage.PageSize = _ctx.IntegerValue("ListAgentStateLogs.AgentStateLogPage.PageSize"); List <ListAgentStateLogsResponse.ListAgentStateLogs_AgentStateLogPage.ListAgentStateLogs_AgentStateLog> agentStateLogPage_list = new List <ListAgentStateLogsResponse.ListAgentStateLogs_AgentStateLogPage.ListAgentStateLogs_AgentStateLog>(); for (int i = 0; i < _ctx.Length("ListAgentStateLogs.AgentStateLogPage.List.Length"); i++) { ListAgentStateLogsResponse.ListAgentStateLogs_AgentStateLogPage.ListAgentStateLogs_AgentStateLog agentStateLog = new ListAgentStateLogsResponse.ListAgentStateLogs_AgentStateLogPage.ListAgentStateLogs_AgentStateLog(); agentStateLog.InstanceId = _ctx.StringValue("ListAgentStateLogs.AgentStateLogPage.List[" + i + "].InstanceId"); agentStateLog.RamId = _ctx.LongValue("ListAgentStateLogs.AgentStateLogPage.List[" + i + "].RamId"); agentStateLog.State = _ctx.StringValue("ListAgentStateLogs.AgentStateLogPage.List[" + i + "].State"); agentStateLog.StateCode = _ctx.StringValue("ListAgentStateLogs.AgentStateLogPage.List[" + i + "].StateCode"); agentStateLog.StateTime = _ctx.LongValue("ListAgentStateLogs.AgentStateLogPage.List[" + i + "].StateTime"); agentStateLog.ContactId = _ctx.StringValue("ListAgentStateLogs.AgentStateLogPage.List[" + i + "].ContactId"); agentStateLog.ConnectId = _ctx.StringValue("ListAgentStateLogs.AgentStateLogPage.List[" + i + "].ConnectId"); agentStateLog.SkillGroupIds = _ctx.StringValue("ListAgentStateLogs.AgentStateLogPage.List[" + i + "].SkillGroupIds"); agentStateLog.CounterParty = _ctx.StringValue("ListAgentStateLogs.AgentStateLogPage.List[" + i + "].CounterParty"); agentStateLogPage_list.Add(agentStateLog); } agentStateLogPage.List = agentStateLogPage_list; listAgentStateLogsResponse.AgentStateLogPage = agentStateLogPage; return(listAgentStateLogsResponse); }