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

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

public static Unmarshall ( UnmarshallerContext context ) : DescribeCdnRegionAndIspResponse
context UnmarshallerContext
Результат Aliyun.Acs.Cdn.Model.V20141111.DescribeCdnRegionAndIspResponse
        public static DescribeCdnRegionAndIspResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeCdnRegionAndIspResponse describeCdnRegionAndIspResponse = new DescribeCdnRegionAndIspResponse();

            describeCdnRegionAndIspResponse.HttpResponse = context.HttpResponse;
            describeCdnRegionAndIspResponse.RequestId = context.StringValue("DescribeCdnRegionAndIsp.RequestId");

            List<DescribeCdnRegionAndIspResponse.Region> regions = new List<DescribeCdnRegionAndIspResponse.Region>();
            for (int i = 0; i < context.Length("DescribeCdnRegionAndIsp.Regions.Length"); i++) {
                DescribeCdnRegionAndIspResponse.Region region = new DescribeCdnRegionAndIspResponse.Region();
                region.NameZh = context.StringValue("DescribeCdnRegionAndIsp.Regions["+ i +"].NameZh");
                region.NameEn = context.StringValue("DescribeCdnRegionAndIsp.Regions["+ i +"].NameEn");

                regions.Add(region);
            }
            describeCdnRegionAndIspResponse.Regions = regions;

            List<DescribeCdnRegionAndIspResponse.Isp> isps = new List<DescribeCdnRegionAndIspResponse.Isp>();
            for (int i = 0; i < context.Length("DescribeCdnRegionAndIsp.Isps.Length"); i++) {
                DescribeCdnRegionAndIspResponse.Isp isp = new DescribeCdnRegionAndIspResponse.Isp();
                isp.NameZh = context.StringValue("DescribeCdnRegionAndIsp.Isps["+ i +"].NameZh");
                isp.NameEn = context.StringValue("DescribeCdnRegionAndIsp.Isps["+ i +"].NameEn");

                isps.Add(isp);
            }
            describeCdnRegionAndIspResponse.Isps = isps;

            return describeCdnRegionAndIspResponse;
        }
DescribeCdnRegionAndIspResponseUnmarshaller