public static DescribeRoleZoneInfoResponse Unmarshall(UnmarshallerContext _ctx) { DescribeRoleZoneInfoResponse describeRoleZoneInfoResponse = new DescribeRoleZoneInfoResponse(); describeRoleZoneInfoResponse.HttpResponse = _ctx.HttpResponse; describeRoleZoneInfoResponse.RequestId = _ctx.StringValue("DescribeRoleZoneInfo.RequestId"); describeRoleZoneInfoResponse.PageNumber = _ctx.IntegerValue("DescribeRoleZoneInfo.PageNumber"); describeRoleZoneInfoResponse.PageSize = _ctx.IntegerValue("DescribeRoleZoneInfo.PageSize"); describeRoleZoneInfoResponse.TotalCount = _ctx.IntegerValue("DescribeRoleZoneInfo.TotalCount"); List <DescribeRoleZoneInfoResponse.DescribeRoleZoneInfo_NodeInfo> describeRoleZoneInfoResponse_node = new List <DescribeRoleZoneInfoResponse.DescribeRoleZoneInfo_NodeInfo>(); for (int i = 0; i < _ctx.Length("DescribeRoleZoneInfo.Node.Length"); i++) { DescribeRoleZoneInfoResponse.DescribeRoleZoneInfo_NodeInfo nodeInfo = new DescribeRoleZoneInfoResponse.DescribeRoleZoneInfo_NodeInfo(); nodeInfo.NodeId = _ctx.StringValue("DescribeRoleZoneInfo.Node[" + i + "].NodeId"); nodeInfo.NodeType = _ctx.StringValue("DescribeRoleZoneInfo.Node[" + i + "].NodeType"); nodeInfo.Role = _ctx.StringValue("DescribeRoleZoneInfo.Node[" + i + "].Role"); nodeInfo.ZoneId = _ctx.StringValue("DescribeRoleZoneInfo.Node[" + i + "].ZoneId"); nodeInfo.CPUUsage = _ctx.StringValue("DescribeRoleZoneInfo.Node[" + i + "].CPUUsage"); nodeInfo.Connection = _ctx.FloatValue("DescribeRoleZoneInfo.Node[" + i + "].Connection"); nodeInfo.AvgRt = _ctx.FloatValue("DescribeRoleZoneInfo.Node[" + i + "].AvgRt"); nodeInfo.IntranetIn = _ctx.FloatValue("DescribeRoleZoneInfo.Node[" + i + "].IntranetIn"); nodeInfo.IntranetOut = _ctx.FloatValue("DescribeRoleZoneInfo.Node[" + i + "].IntranetOut"); nodeInfo.CustinsId = _ctx.StringValue("DescribeRoleZoneInfo.Node[" + i + "].CustinsId"); nodeInfo.InsType = _ctx.IntegerValue("DescribeRoleZoneInfo.Node[" + i + "].InsType"); nodeInfo.InsName = _ctx.StringValue("DescribeRoleZoneInfo.Node[" + i + "].InsName"); nodeInfo.IsLatestVersion = _ctx.IntegerValue("DescribeRoleZoneInfo.Node[" + i + "].IsLatestVersion"); nodeInfo.CurrentMinorVersion = _ctx.StringValue("DescribeRoleZoneInfo.Node[" + i + "].CurrentMinorVersion"); nodeInfo.CurrentBandWidth = _ctx.LongValue("DescribeRoleZoneInfo.Node[" + i + "].CurrentBandWidth"); nodeInfo.DefaultBandWidth = _ctx.LongValue("DescribeRoleZoneInfo.Node[" + i + "].DefaultBandWidth"); nodeInfo.IsOpenBandWidthService = _ctx.BooleanValue("DescribeRoleZoneInfo.Node[" + i + "].IsOpenBandWidthService"); describeRoleZoneInfoResponse_node.Add(nodeInfo); } describeRoleZoneInfoResponse.Node = describeRoleZoneInfoResponse_node; return(describeRoleZoneInfoResponse); }
public static DescribeRoleZoneInfoResponse Unmarshall(UnmarshallerContext _ctx) { DescribeRoleZoneInfoResponse describeRoleZoneInfoResponse = new DescribeRoleZoneInfoResponse(); describeRoleZoneInfoResponse.HttpResponse = _ctx.HttpResponse; describeRoleZoneInfoResponse.RequestId = _ctx.StringValue("DescribeRoleZoneInfo.RequestId"); List <DescribeRoleZoneInfoResponse.DescribeRoleZoneInfo_ZoneInfo> describeRoleZoneInfoResponse_zoneInfos = new List <DescribeRoleZoneInfoResponse.DescribeRoleZoneInfo_ZoneInfo>(); for (int i = 0; i < _ctx.Length("DescribeRoleZoneInfo.ZoneInfos.Length"); i++) { DescribeRoleZoneInfoResponse.DescribeRoleZoneInfo_ZoneInfo zoneInfo = new DescribeRoleZoneInfoResponse.DescribeRoleZoneInfo_ZoneInfo(); zoneInfo.NodeType = _ctx.StringValue("DescribeRoleZoneInfo.ZoneInfos[" + i + "].NodeType"); zoneInfo.RoleType = _ctx.StringValue("DescribeRoleZoneInfo.ZoneInfos[" + i + "].RoleType"); zoneInfo.ZoneId = _ctx.StringValue("DescribeRoleZoneInfo.ZoneInfos[" + i + "].ZoneId"); zoneInfo.RoleId = _ctx.StringValue("DescribeRoleZoneInfo.ZoneInfos[" + i + "].RoleId"); zoneInfo.InsName = _ctx.StringValue("DescribeRoleZoneInfo.ZoneInfos[" + i + "].InsName"); describeRoleZoneInfoResponse_zoneInfos.Add(zoneInfo); } describeRoleZoneInfoResponse.ZoneInfos = describeRoleZoneInfoResponse_zoneInfos; return(describeRoleZoneInfoResponse); }