Example #1
0
        public static DescribePhysicalConnectionsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribePhysicalConnectionsResponse describePhysicalConnectionsResponse = new DescribePhysicalConnectionsResponse();

            describePhysicalConnectionsResponse.HttpResponse = context.HttpResponse;
            describePhysicalConnectionsResponse.RequestId    = context.StringValue("DescribePhysicalConnections.RequestId");
            describePhysicalConnectionsResponse.PageNumber   = context.IntegerValue("DescribePhysicalConnections.PageNumber");
            describePhysicalConnectionsResponse.PageSize     = context.IntegerValue("DescribePhysicalConnections.PageSize");
            describePhysicalConnectionsResponse.TotalCount   = context.IntegerValue("DescribePhysicalConnections.TotalCount");

            List <DescribePhysicalConnectionsResponse.DescribePhysicalConnections_PhysicalConnectionType> describePhysicalConnectionsResponse_physicalConnectionSet = new List <DescribePhysicalConnectionsResponse.DescribePhysicalConnections_PhysicalConnectionType>();

            for (int i = 0; i < context.Length("DescribePhysicalConnections.PhysicalConnectionSet.Length"); i++)
            {
                DescribePhysicalConnectionsResponse.DescribePhysicalConnections_PhysicalConnectionType physicalConnectionType = new DescribePhysicalConnectionsResponse.DescribePhysicalConnections_PhysicalConnectionType();
                physicalConnectionType.PhysicalConnectionId = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].PhysicalConnectionId");
                physicalConnectionType.AccessPointId        = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].AccessPointId");
                physicalConnectionType.Type           = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].Type");
                physicalConnectionType.Status         = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].Status");
                physicalConnectionType.BusinessStatus = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].BusinessStatus");
                physicalConnectionType.CreationTime   = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].CreationTime");
                physicalConnectionType.EnabledTime    = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].EnabledTime");
                physicalConnectionType.LineOperator   = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].LineOperator");
                physicalConnectionType.Spec           = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].Spec");
                physicalConnectionType.PeerLocation   = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].PeerLocation");
                physicalConnectionType.PortType       = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].PortType");
                physicalConnectionType.RedundantPhysicalConnectionId = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].RedundantPhysicalConnectionId");
                physicalConnectionType.Name                          = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].Name");
                physicalConnectionType.Description                   = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].Description");
                physicalConnectionType.AdLocation                    = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].AdLocation");
                physicalConnectionType.PortNumber                    = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].PortNumber");
                physicalConnectionType.CircuitCode                   = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].CircuitCode");
                physicalConnectionType.Bandwidth                     = context.LongValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].Bandwidth");
                physicalConnectionType.LoaStatus                     = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].LoaStatus");
                physicalConnectionType.Spec1                         = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].Spec");
                physicalConnectionType.HasReservationData            = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].HasReservationData");
                physicalConnectionType.ReservationInternetChargeType = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].ReservationInternetChargeType");
                physicalConnectionType.ReservationActiveTime         = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].ReservationActiveTime");
                physicalConnectionType.ReservationOrderType          = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].ReservationOrderType");
                physicalConnectionType.EndTime                       = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].EndTime");
                physicalConnectionType.ChargeType                    = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet[" + i + "].ChargeType");

                describePhysicalConnectionsResponse_physicalConnectionSet.Add(physicalConnectionType);
            }
            describePhysicalConnectionsResponse.PhysicalConnectionSet = describePhysicalConnectionsResponse_physicalConnectionSet;

            return(describePhysicalConnectionsResponse);
        }
Example #2
0
        public static DescribePhysicalConnectionsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribePhysicalConnectionsResponse describePhysicalConnectionsResponse = new DescribePhysicalConnectionsResponse()
            {
                HttpResponse = context.HttpResponse,
                RequestId    = context.StringValue("DescribePhysicalConnections.RequestId"),
                PageNumber   = context.IntegerValue("DescribePhysicalConnections.PageNumber"),
                PageSize     = context.IntegerValue("DescribePhysicalConnections.PageSize"),
                TotalCount   = context.IntegerValue("DescribePhysicalConnections.TotalCount")
            };
            List <DescribePhysicalConnectionsResponse.PhysicalConnectionType> physicalConnectionSet = new List <DescribePhysicalConnectionsResponse.PhysicalConnectionType>();

            for (int i = 0; i < context.Length("DescribePhysicalConnections.PhysicalConnectionSet.Length"); i++)
            {
                DescribePhysicalConnectionsResponse.PhysicalConnectionType physicalConnectionType = new DescribePhysicalConnectionsResponse.PhysicalConnectionType()
                {
                    PhysicalConnectionId = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].PhysicalConnectionId"),
                    AccessPointId        = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].AccessPointId"),
                    Type           = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].Type"),
                    Status         = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].Status"),
                    BusinessStatus = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].BusinessStatus"),
                    CreationTime   = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].CreationTime"),
                    EnabledTime    = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].EnabledTime"),
                    LineOperator   = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].LineOperator"),
                    Spec           = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].Spec"),
                    PeerLocation   = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].PeerLocation"),
                    PortType       = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].PortType"),
                    RedundantPhysicalConnectionId = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].RedundantPhysicalConnectionId"),
                    Name        = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].Name"),
                    Description = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].Description"),
                    AdLocation  = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].AdLocation"),
                    PortNumber  = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].PortNumber"),
                    CircuitCode = context.StringValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].CircuitCode"),
                    Bandwidth   = context.LongValue($"DescribePhysicalConnections.PhysicalConnectionSet[{i}].Bandwidth")
                };
                physicalConnectionSet.Add(physicalConnectionType);
            }
            describePhysicalConnectionsResponse.PhysicalConnectionSet = physicalConnectionSet;

            return(describePhysicalConnectionsResponse);
        }
        public static DescribePhysicalConnectionsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribePhysicalConnectionsResponse describePhysicalConnectionsResponse = new DescribePhysicalConnectionsResponse();

            describePhysicalConnectionsResponse.HttpResponse = context.HttpResponse;
            describePhysicalConnectionsResponse.RequestId = context.StringValue("DescribePhysicalConnections.RequestId");
            describePhysicalConnectionsResponse.PageNumber = context.IntegerValue("DescribePhysicalConnections.PageNumber");
            describePhysicalConnectionsResponse.PageSize = context.IntegerValue("DescribePhysicalConnections.PageSize");
            describePhysicalConnectionsResponse.TotalCount = context.IntegerValue("DescribePhysicalConnections.TotalCount");

            List<DescribePhysicalConnectionsResponse.PhysicalConnectionType> physicalConnectionSet = new List<DescribePhysicalConnectionsResponse.PhysicalConnectionType>();
            for (int i = 0; i < context.Length("DescribePhysicalConnections.PhysicalConnectionSet.Length"); i++) {
                DescribePhysicalConnectionsResponse.PhysicalConnectionType physicalConnectionType = new DescribePhysicalConnectionsResponse.PhysicalConnectionType();
                physicalConnectionType.PhysicalConnectionId = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].PhysicalConnectionId");
                physicalConnectionType.AccessPointId = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].AccessPointId");
                physicalConnectionType.Type = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].Type");
                physicalConnectionType.Status = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].Status");
                physicalConnectionType.BusinessStatus = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].BusinessStatus");
                physicalConnectionType.CreationTime = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].CreationTime");
                physicalConnectionType.EnabledTime = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].EnabledTime");
                physicalConnectionType.LineOperator = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].LineOperator");
                physicalConnectionType.Spec = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].Spec");
                physicalConnectionType.PeerLocation = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].PeerLocation");
                physicalConnectionType.PortType = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].PortType");
                physicalConnectionType.RedundantPhysicalConnectionId = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].RedundantPhysicalConnectionId");
                physicalConnectionType.Name = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].Name");
                physicalConnectionType.Description = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].Description");
                physicalConnectionType.AdLocation = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].AdLocation");
                physicalConnectionType.PortNumber = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].PortNumber");
                physicalConnectionType.CircuitCode = context.StringValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].CircuitCode");
                physicalConnectionType.Bandwidth = context.LongValue("DescribePhysicalConnections.PhysicalConnectionSet["+ i +"].Bandwidth");

                physicalConnectionSet.Add(physicalConnectionType);
            }
            describePhysicalConnectionsResponse.PhysicalConnectionSet = physicalConnectionSet;

            return describePhysicalConnectionsResponse;
        }