Beispiel #1
0
        public static DescribeCenBandwidthPackagesResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeCenBandwidthPackagesResponse describeCenBandwidthPackagesResponse = new DescribeCenBandwidthPackagesResponse();

            describeCenBandwidthPackagesResponse.HttpResponse = _ctx.HttpResponse;
            describeCenBandwidthPackagesResponse.RequestId    = _ctx.StringValue("DescribeCenBandwidthPackages.RequestId");
            describeCenBandwidthPackagesResponse.TotalCount   = _ctx.IntegerValue("DescribeCenBandwidthPackages.TotalCount");
            describeCenBandwidthPackagesResponse.PageNumber   = _ctx.IntegerValue("DescribeCenBandwidthPackages.PageNumber");
            describeCenBandwidthPackagesResponse.PageSize     = _ctx.IntegerValue("DescribeCenBandwidthPackages.PageSize");

            List <DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage> describeCenBandwidthPackagesResponse_cenBandwidthPackages = new List <DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage>();

            for (int i = 0; i < _ctx.Length("DescribeCenBandwidthPackages.CenBandwidthPackages.Length"); i++)
            {
                DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage cenBandwidthPackage = new DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage();
                cenBandwidthPackage.CenBandwidthPackageId = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].CenBandwidthPackageId");
                cenBandwidthPackage.Name        = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Name");
                cenBandwidthPackage.Description = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Description");
                cenBandwidthPackage.Bandwidth   = _ctx.LongValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Bandwidth");
                cenBandwidthPackage.BandwidthPackageChargeType = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].BandwidthPackageChargeType");
                cenBandwidthPackage.GeographicRegionAId        = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].GeographicRegionAId");
                cenBandwidthPackage.GeographicRegionBId        = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].GeographicRegionBId");
                cenBandwidthPackage.GeographicSpanId           = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].GeographicSpanId");
                cenBandwidthPackage.BusinessStatus             = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].BusinessStatus");
                cenBandwidthPackage.CreationTime                  = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].CreationTime");
                cenBandwidthPackage.ExpiredTime                   = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].ExpiredTime");
                cenBandwidthPackage.Status                        = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Status");
                cenBandwidthPackage.IsCrossBorder                 = _ctx.BooleanValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].IsCrossBorder");
                cenBandwidthPackage.TypeFor95                     = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].TypeFor95");
                cenBandwidthPackage.Ratio                         = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Ratio");
                cenBandwidthPackage.HasReservationData            = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].HasReservationData");
                cenBandwidthPackage.ReservationBandwidth          = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].ReservationBandwidth");
                cenBandwidthPackage.ReservationInternetChargeType = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].ReservationInternetChargeType");
                cenBandwidthPackage.ReservationActiveTime         = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].ReservationActiveTime");
                cenBandwidthPackage.ReservationOrderType          = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].ReservationOrderType");

                List <string> cenBandwidthPackage_cenIds = new List <string>();
                for (int j = 0; j < _ctx.Length("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].CenIds.Length"); j++)
                {
                    cenBandwidthPackage_cenIds.Add(_ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].CenIds[" + j + "]"));
                }
                cenBandwidthPackage.CenIds = cenBandwidthPackage_cenIds;

                List <DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_OrginInterRegionBandwidthLimit> cenBandwidthPackage_orginInterRegionBandwidthLimits = new List <DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_OrginInterRegionBandwidthLimit>();
                for (int j = 0; j < _ctx.Length("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].OrginInterRegionBandwidthLimits.Length"); j++)
                {
                    DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_OrginInterRegionBandwidthLimit orginInterRegionBandwidthLimit = new DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_OrginInterRegionBandwidthLimit();
                    orginInterRegionBandwidthLimit.LocalRegionId    = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].OrginInterRegionBandwidthLimits[" + j + "].LocalRegionId");
                    orginInterRegionBandwidthLimit.OppositeRegionId = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].OrginInterRegionBandwidthLimits[" + j + "].OppositeRegionId");
                    orginInterRegionBandwidthLimit.GeographicSpanId = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].OrginInterRegionBandwidthLimits[" + j + "].GeographicSpanId");
                    orginInterRegionBandwidthLimit.BandwidthLimit   = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].OrginInterRegionBandwidthLimits[" + j + "].BandwidthLimit");

                    cenBandwidthPackage_orginInterRegionBandwidthLimits.Add(orginInterRegionBandwidthLimit);
                }
                cenBandwidthPackage.OrginInterRegionBandwidthLimits = cenBandwidthPackage_orginInterRegionBandwidthLimits;

                List <DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_Tag> cenBandwidthPackage_tags = new List <DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_Tag>();
                for (int j = 0; j < _ctx.Length("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Tags.Length"); j++)
                {
                    DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_Tag tag = new DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_Tag();
                    tag.Key    = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Tags[" + j + "].Key");
                    tag._Value = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Tags[" + j + "].Value");

                    cenBandwidthPackage_tags.Add(tag);
                }
                cenBandwidthPackage.Tags = cenBandwidthPackage_tags;

                describeCenBandwidthPackagesResponse_cenBandwidthPackages.Add(cenBandwidthPackage);
            }
            describeCenBandwidthPackagesResponse.CenBandwidthPackages = describeCenBandwidthPackagesResponse_cenBandwidthPackages;

            return(describeCenBandwidthPackagesResponse);
        }
        public static DescribeCenBandwidthPackagesResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeCenBandwidthPackagesResponse describeCenBandwidthPackagesResponse = new DescribeCenBandwidthPackagesResponse();

            describeCenBandwidthPackagesResponse.HttpResponse = context.HttpResponse;
            describeCenBandwidthPackagesResponse.RequestId    = context.StringValue("DescribeCenBandwidthPackages.RequestId");
            describeCenBandwidthPackagesResponse.TotalCount   = context.IntegerValue("DescribeCenBandwidthPackages.TotalCount");
            describeCenBandwidthPackagesResponse.PageNumber   = context.IntegerValue("DescribeCenBandwidthPackages.PageNumber");
            describeCenBandwidthPackagesResponse.PageSize     = context.IntegerValue("DescribeCenBandwidthPackages.PageSize");

            List <DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage> describeCenBandwidthPackagesResponse_cenBandwidthPackages = new List <DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage>();

            for (int i = 0; i < context.Length("DescribeCenBandwidthPackages.CenBandwidthPackages.Length"); i++)
            {
                DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage cenBandwidthPackage = new DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage();
                cenBandwidthPackage.CenBandwidthPackageId = context.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].CenBandwidthPackageId");
                cenBandwidthPackage.Name        = context.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Name");
                cenBandwidthPackage.Description = context.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Description");
                cenBandwidthPackage.Bandwidth   = context.LongValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Bandwidth");
                cenBandwidthPackage.BandwidthPackageChargeType = context.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].BandwidthPackageChargeType");
                cenBandwidthPackage.GeographicRegionAId        = context.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].GeographicRegionAId");
                cenBandwidthPackage.GeographicRegionBId        = context.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].GeographicRegionBId");
                cenBandwidthPackage.GeographicSpanId           = context.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].GeographicSpanId");
                cenBandwidthPackage.BusinessStatus             = context.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].BusinessStatus");
                cenBandwidthPackage.CreationTime  = context.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].CreationTime");
                cenBandwidthPackage.ExpiredTime   = context.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].ExpiredTime");
                cenBandwidthPackage.Status        = context.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Status");
                cenBandwidthPackage.IsCrossBorder = context.BooleanValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].IsCrossBorder");

                List <string> cenBandwidthPackage_cenIds = new List <string>();
                for (int j = 0; j < context.Length("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].CenIds.Length"); j++)
                {
                    cenBandwidthPackage_cenIds.Add(context.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].CenIds[" + j + "]"));
                }
                cenBandwidthPackage.CenIds = cenBandwidthPackage_cenIds;

                describeCenBandwidthPackagesResponse_cenBandwidthPackages.Add(cenBandwidthPackage);
            }
            describeCenBandwidthPackagesResponse.CenBandwidthPackages = describeCenBandwidthPackagesResponse_cenBandwidthPackages;

            return(describeCenBandwidthPackagesResponse);
        }