Пример #1
0
        public static DescribeDomainBpsDataResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDomainBpsDataResponse describeDomainBpsDataResponse = new DescribeDomainBpsDataResponse();

            describeDomainBpsDataResponse.HttpResponse   = context.HttpResponse;
            describeDomainBpsDataResponse.RequestId      = context.StringValue("DescribeDomainBpsData.RequestId");
            describeDomainBpsDataResponse.DomainName     = context.StringValue("DescribeDomainBpsData.DomainName");
            describeDomainBpsDataResponse.DataInterval   = context.StringValue("DescribeDomainBpsData.DataInterval");
            describeDomainBpsDataResponse.StartTime      = context.StringValue("DescribeDomainBpsData.StartTime");
            describeDomainBpsDataResponse.EndTime        = context.StringValue("DescribeDomainBpsData.EndTime");
            describeDomainBpsDataResponse.LocationNameEn = context.StringValue("DescribeDomainBpsData.LocationNameEn");
            describeDomainBpsDataResponse.IspNameEn      = context.StringValue("DescribeDomainBpsData.IspNameEn");
            describeDomainBpsDataResponse.LocationName   = context.StringValue("DescribeDomainBpsData.LocationName");
            describeDomainBpsDataResponse.IspName        = context.StringValue("DescribeDomainBpsData.IspName");

            List <DescribeDomainBpsDataResponse.DataModule> bpsDataPerInterval = new List <DescribeDomainBpsDataResponse.DataModule>();

            for (int i = 0; i < context.Length("DescribeDomainBpsData.BpsDataPerInterval.Length"); i++)
            {
                DescribeDomainBpsDataResponse.DataModule dataModule = new DescribeDomainBpsDataResponse.DataModule();
                dataModule.TimeStamp            = context.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].TimeStamp");
                dataModule.Value                = context.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].Value");
                dataModule.DomesticValue        = context.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].DomesticValue");
                dataModule.OverseasValue        = context.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].OverseasValue");
                dataModule.DynamicValue         = context.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].DynamicValue");
                dataModule.DynamicDomesticValue = context.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].DynamicDomesticValue");
                dataModule.DynamicOverseasValue = context.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].DynamicOverseasValue");
                dataModule.StaticValue          = context.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].StaticValue");
                dataModule.StaticDomesticValue  = context.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].StaticDomesticValue");
                dataModule.StaticOverseasValue  = context.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].StaticOverseasValue");
                dataModule.L2Value              = context.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].L2Value");
                dataModule.DomesticL2Value      = context.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].DomesticL2Value");
                dataModule.OverseasL2Value      = context.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].OverseasL2Value");

                bpsDataPerInterval.Add(dataModule);
            }
            describeDomainBpsDataResponse.BpsDataPerInterval = bpsDataPerInterval;

            List <DescribeDomainBpsDataResponse.DataModule> supplyBpsDatas = new List <DescribeDomainBpsDataResponse.DataModule>();

            for (int i = 0; i < context.Length("DescribeDomainBpsData.SupplyBpsDatas.Length"); i++)
            {
                DescribeDomainBpsDataResponse.DataModule dataModule = new DescribeDomainBpsDataResponse.DataModule();
                dataModule.TimeStamp = context.StringValue("DescribeDomainBpsData.SupplyBpsDatas[" + i + "].TimeStamp");
                dataModule.Value     = context.StringValue("DescribeDomainBpsData.SupplyBpsDatas[" + i + "].Value");

                supplyBpsDatas.Add(dataModule);
            }
            describeDomainBpsDataResponse.SupplyBpsDatas = supplyBpsDatas;

            return(describeDomainBpsDataResponse);
        }
Пример #2
0
        public static DescribeDomainBpsDataResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDomainBpsDataResponse describeDomainBpsDataResponse = new DescribeDomainBpsDataResponse()
            {
                HttpResponse   = context.HttpResponse,
                RequestId      = context.StringValue("DescribeDomainBpsData.RequestId"),
                DomainName     = context.StringValue("DescribeDomainBpsData.DomainName"),
                DataInterval   = context.StringValue("DescribeDomainBpsData.DataInterval"),
                StartTime      = context.StringValue("DescribeDomainBpsData.StartTime"),
                EndTime        = context.StringValue("DescribeDomainBpsData.EndTime"),
                LocationNameEn = context.StringValue("DescribeDomainBpsData.LocationNameEn"),
                IspNameEn      = context.StringValue("DescribeDomainBpsData.IspNameEn"),
                LocationName   = context.StringValue("DescribeDomainBpsData.LocationName"),
                IspName        = context.StringValue("DescribeDomainBpsData.IspName")
            };
            List <DescribeDomainBpsDataResponse.DataModule> bpsDataPerInterval = new List <DescribeDomainBpsDataResponse.DataModule>();

            for (int i = 0; i < context.Length("DescribeDomainBpsData.BpsDataPerInterval.Length"); i++)
            {
                DescribeDomainBpsDataResponse.DataModule dataModule = new DescribeDomainBpsDataResponse.DataModule()
                {
                    TimeStamp     = context.StringValue($"DescribeDomainBpsData.BpsDataPerInterval[{i}].TimeStamp"),
                    Value         = context.StringValue($"DescribeDomainBpsData.BpsDataPerInterval[{i}].Value"),
                    DomesticValue = context.StringValue($"DescribeDomainBpsData.BpsDataPerInterval[{i}].DomesticValue"),
                    OverseasValue = context.StringValue($"DescribeDomainBpsData.BpsDataPerInterval[{i}].OverseasValue")
                };
                bpsDataPerInterval.Add(dataModule);
            }
            describeDomainBpsDataResponse.BpsDataPerInterval = bpsDataPerInterval;

            List <DescribeDomainBpsDataResponse.DataModule> supplyBpsDatas = new List <DescribeDomainBpsDataResponse.DataModule>();

            for (int i = 0; i < context.Length("DescribeDomainBpsData.SupplyBpsDatas.Length"); i++)
            {
                DescribeDomainBpsDataResponse.DataModule dataModule = new DescribeDomainBpsDataResponse.DataModule()
                {
                    TimeStamp = context.StringValue($"DescribeDomainBpsData.SupplyBpsDatas[{i}].TimeStamp"),
                    Value     = context.StringValue($"DescribeDomainBpsData.SupplyBpsDatas[{i}].Value")
                };
                supplyBpsDatas.Add(dataModule);
            }
            describeDomainBpsDataResponse.SupplyBpsDatas = supplyBpsDatas;

            return(describeDomainBpsDataResponse);
        }