Aliyun.Acs.Cdn.Transform.V20141111.DescribeDomainDownstreamBpsOfEdgeResponseUnmarshaller.Unmarshall C# (CSharp) Метод

Unmarshall() публичный статический Метод

public static Unmarshall ( UnmarshallerContext context ) : DescribeDomainDownstreamBpsOfEdgeResponse
context UnmarshallerContext
Результат DescribeDomainDownstreamBpsOfEdgeResponse
        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;
        }
DescribeDomainDownstreamBpsOfEdgeResponseUnmarshaller