Aliyun.Acs.Cdn.Transform.V20141111.DescribeDomainUpstreamOfCenterResponseUnmarshaller.Unmarshall C# (CSharp) Method

Unmarshall() public static method

public static Unmarshall ( UnmarshallerContext context ) : DescribeDomainUpstreamOfCenterResponse
context UnmarshallerContext
return Aliyun.Acs.Cdn.Model.V20141111.DescribeDomainUpstreamOfCenterResponse
        public static DescribeDomainUpstreamOfCenterResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDomainUpstreamOfCenterResponse describeDomainUpstreamOfCenterResponse = new DescribeDomainUpstreamOfCenterResponse();

            describeDomainUpstreamOfCenterResponse.HttpResponse = context.HttpResponse;
            describeDomainUpstreamOfCenterResponse.RequestId = context.StringValue("DescribeDomainUpstreamOfCenter.RequestId");

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

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

            return describeDomainUpstreamOfCenterResponse;
        }
DescribeDomainUpstreamOfCenterResponseUnmarshaller