public static OnsInstanceInServiceListResponse Unmarshall(UnmarshallerContext context) { OnsInstanceInServiceListResponse onsInstanceInServiceListResponse = new OnsInstanceInServiceListResponse(); onsInstanceInServiceListResponse.HttpResponse = context.HttpResponse; onsInstanceInServiceListResponse.RequestId = context.StringValue("OnsInstanceInServiceList.RequestId"); onsInstanceInServiceListResponse.HelpUrl = context.StringValue("OnsInstanceInServiceList.HelpUrl"); List <OnsInstanceInServiceListResponse.OnsInstanceInServiceList_InstanceVO> onsInstanceInServiceListResponse_data = new List <OnsInstanceInServiceListResponse.OnsInstanceInServiceList_InstanceVO>(); for (int i = 0; i < context.Length("OnsInstanceInServiceList.Data.Length"); i++) { OnsInstanceInServiceListResponse.OnsInstanceInServiceList_InstanceVO instanceVO = new OnsInstanceInServiceListResponse.OnsInstanceInServiceList_InstanceVO(); instanceVO.InstanceId = context.StringValue("OnsInstanceInServiceList.Data[" + i + "].InstanceId"); instanceVO.InstanceStatus = context.IntegerValue("OnsInstanceInServiceList.Data[" + i + "].InstanceStatus"); instanceVO.ReleaseTime = context.LongValue("OnsInstanceInServiceList.Data[" + i + "].ReleaseTime"); instanceVO.InstanceType = context.IntegerValue("OnsInstanceInServiceList.Data[" + i + "].InstanceType"); instanceVO.InstanceName = context.StringValue("OnsInstanceInServiceList.Data[" + i + "].InstanceName"); instanceVO.IndependentNaming = context.BooleanValue("OnsInstanceInServiceList.Data[" + i + "].IndependentNaming"); onsInstanceInServiceListResponse_data.Add(instanceVO); } onsInstanceInServiceListResponse.Data = onsInstanceInServiceListResponse_data; return(onsInstanceInServiceListResponse); }
public static OnsInstanceInServiceListResponse Unmarshall(UnmarshallerContext _ctx) { OnsInstanceInServiceListResponse onsInstanceInServiceListResponse = new OnsInstanceInServiceListResponse(); onsInstanceInServiceListResponse.HttpResponse = _ctx.HttpResponse; onsInstanceInServiceListResponse.RequestId = _ctx.StringValue("OnsInstanceInServiceList.RequestId"); onsInstanceInServiceListResponse.HelpUrl = _ctx.StringValue("OnsInstanceInServiceList.HelpUrl"); List <OnsInstanceInServiceListResponse.OnsInstanceInServiceList_InstanceVO> onsInstanceInServiceListResponse_data = new List <OnsInstanceInServiceListResponse.OnsInstanceInServiceList_InstanceVO>(); for (int i = 0; i < _ctx.Length("OnsInstanceInServiceList.Data.Length"); i++) { OnsInstanceInServiceListResponse.OnsInstanceInServiceList_InstanceVO instanceVO = new OnsInstanceInServiceListResponse.OnsInstanceInServiceList_InstanceVO(); instanceVO.InstanceId = _ctx.StringValue("OnsInstanceInServiceList.Data[" + i + "].InstanceId"); instanceVO.InstanceStatus = _ctx.IntegerValue("OnsInstanceInServiceList.Data[" + i + "].InstanceStatus"); instanceVO.ReleaseTime = _ctx.LongValue("OnsInstanceInServiceList.Data[" + i + "].ReleaseTime"); instanceVO.InstanceType = _ctx.IntegerValue("OnsInstanceInServiceList.Data[" + i + "].InstanceType"); instanceVO.InstanceName = _ctx.StringValue("OnsInstanceInServiceList.Data[" + i + "].InstanceName"); instanceVO.IndependentNaming = _ctx.BooleanValue("OnsInstanceInServiceList.Data[" + i + "].IndependentNaming"); List <OnsInstanceInServiceListResponse.OnsInstanceInServiceList_InstanceVO.OnsInstanceInServiceList_Tag> instanceVO_tags = new List <OnsInstanceInServiceListResponse.OnsInstanceInServiceList_InstanceVO.OnsInstanceInServiceList_Tag>(); for (int j = 0; j < _ctx.Length("OnsInstanceInServiceList.Data[" + i + "].Tags.Length"); j++) { OnsInstanceInServiceListResponse.OnsInstanceInServiceList_InstanceVO.OnsInstanceInServiceList_Tag tag = new OnsInstanceInServiceListResponse.OnsInstanceInServiceList_InstanceVO.OnsInstanceInServiceList_Tag(); tag.Key = _ctx.StringValue("OnsInstanceInServiceList.Data[" + i + "].Tags[" + j + "].Key"); tag._Value = _ctx.StringValue("OnsInstanceInServiceList.Data[" + i + "].Tags[" + j + "].Value"); instanceVO_tags.Add(tag); } instanceVO.Tags = instanceVO_tags; onsInstanceInServiceListResponse_data.Add(instanceVO); } onsInstanceInServiceListResponse.Data = onsInstanceInServiceListResponse_data; return(onsInstanceInServiceListResponse); }