public static DescribeDomainDownstreamBpsOfEdgeResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDomainDownstreamBpsOfEdgeResponse describeDomainDownstreamBpsOfEdgeResponse = new DescribeDomainDownstreamBpsOfEdgeResponse();

            describeDomainDownstreamBpsOfEdgeResponse.HttpResponse = context.HttpResponse;
            describeDomainDownstreamBpsOfEdgeResponse.RequestId = context.StringValue("DescribeDomainDownstreamBpsOfEdge.RequestId");

            List<DescribeDomainDownstreamBpsOfEdgeResponse.DomainBpsModel> bpsDatas = new List<DescribeDomainDownstreamBpsOfEdgeResponse.DomainBpsModel>();
            for (int i = 0; i < context.Length("DescribeDomainDownstreamBpsOfEdge.BpsDatas.Length"); i++) {
                DescribeDomainDownstreamBpsOfEdgeResponse.DomainBpsModel domainBpsModel = new DescribeDomainDownstreamBpsOfEdgeResponse.DomainBpsModel();
                domainBpsModel.Time = context.StringValue("DescribeDomainDownstreamBpsOfEdge.BpsDatas["+ i +"].Time");
                domainBpsModel.Bps = context.FloatValue("DescribeDomainDownstreamBpsOfEdge.BpsDatas["+ i +"].Bps");

                bpsDatas.Add(domainBpsModel);
            }
            describeDomainDownstreamBpsOfEdgeResponse.BpsDatas = bpsDatas;

            return describeDomainDownstreamBpsOfEdgeResponse;
        }
Example #2
0
        public static DescribeDomainDownstreamBpsOfEdgeResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDomainDownstreamBpsOfEdgeResponse describeDomainDownstreamBpsOfEdgeResponse = new DescribeDomainDownstreamBpsOfEdgeResponse();

            describeDomainDownstreamBpsOfEdgeResponse.HttpResponse = context.HttpResponse;
            describeDomainDownstreamBpsOfEdgeResponse.RequestId    = context.StringValue("DescribeDomainDownstreamBpsOfEdge.RequestId");

            List <DescribeDomainDownstreamBpsOfEdgeResponse.DomainBpsModel> bpsDatas = new List <DescribeDomainDownstreamBpsOfEdgeResponse.DomainBpsModel>();

            for (int i = 0; i < context.Length("DescribeDomainDownstreamBpsOfEdge.BpsDatas.Length"); i++)
            {
                DescribeDomainDownstreamBpsOfEdgeResponse.DomainBpsModel domainBpsModel = new DescribeDomainDownstreamBpsOfEdgeResponse.DomainBpsModel();
                domainBpsModel.Time = context.StringValue("DescribeDomainDownstreamBpsOfEdge.BpsDatas[" + i + "].Time");
                domainBpsModel.Bps  = context.FloatValue("DescribeDomainDownstreamBpsOfEdge.BpsDatas[" + i + "].Bps");

                bpsDatas.Add(domainBpsModel);
            }
            describeDomainDownstreamBpsOfEdgeResponse.BpsDatas = bpsDatas;

            return(describeDomainDownstreamBpsOfEdgeResponse);
        }