示例#1
0
        public static DescribeDomainBpsDataResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeDomainBpsDataResponse describeDomainBpsDataResponse = new DescribeDomainBpsDataResponse();

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

            List <DescribeDomainBpsDataResponse.DescribeDomainBpsData_DataModule> describeDomainBpsDataResponse_bpsDataPerInterval = new List <DescribeDomainBpsDataResponse.DescribeDomainBpsData_DataModule>();

            for (int i = 0; i < _ctx.Length("DescribeDomainBpsData.BpsDataPerInterval.Length"); i++)
            {
                DescribeDomainBpsDataResponse.DescribeDomainBpsData_DataModule dataModule = new DescribeDomainBpsDataResponse.DescribeDomainBpsData_DataModule();
                dataModule.TimeStamp          = _ctx.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].TimeStamp");
                dataModule._Value             = _ctx.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].Value");
                dataModule.DomesticValue      = _ctx.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].DomesticValue");
                dataModule.OverseasValue      = _ctx.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].OverseasValue");
                dataModule.HttpsValue         = _ctx.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].HttpsValue");
                dataModule.HttpsDomesticValue = _ctx.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].HttpsDomesticValue");
                dataModule.HttpsOverseasValue = _ctx.StringValue("DescribeDomainBpsData.BpsDataPerInterval[" + i + "].HttpsOverseasValue");

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

            return(describeDomainBpsDataResponse);
        }
示例#2
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.DescribeDomainBpsData_DataModule> describeDomainBpsDataResponse_bpsDataPerInterval = new List <DescribeDomainBpsDataResponse.DescribeDomainBpsData_DataModule>();

            for (int i = 0; i < context.Length("DescribeDomainBpsData.BpsDataPerInterval.Length"); i++)
            {
                DescribeDomainBpsDataResponse.DescribeDomainBpsData_DataModule dataModule = new DescribeDomainBpsDataResponse.DescribeDomainBpsData_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");

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

            List <DescribeDomainBpsDataResponse.DescribeDomainBpsData_DataModule1> describeDomainBpsDataResponse_supplyBpsDatas = new List <DescribeDomainBpsDataResponse.DescribeDomainBpsData_DataModule1>();

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

                describeDomainBpsDataResponse_supplyBpsDatas.Add(dataModule1);
            }
            describeDomainBpsDataResponse.SupplyBpsDatas = describeDomainBpsDataResponse_supplyBpsDatas;

            return(describeDomainBpsDataResponse);
        }