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

Unmarshall() public static method

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

            describeCdnServiceResponse.HttpResponse = context.HttpResponse;
            describeCdnServiceResponse.RequestId = context.StringValue("DescribeCdnService.RequestId");
            describeCdnServiceResponse.InternetChargeType = context.StringValue("DescribeCdnService.InternetChargeType");
            describeCdnServiceResponse.OpeningTime = context.StringValue("DescribeCdnService.OpeningTime");
            describeCdnServiceResponse.ChangingChargeType = context.StringValue("DescribeCdnService.ChangingChargeType");
            describeCdnServiceResponse.ChangingAffectTime = context.StringValue("DescribeCdnService.ChangingAffectTime");

            List<DescribeCdnServiceResponse.LockReason> operationLocks = new List<DescribeCdnServiceResponse.LockReason>();
            for (int i = 0; i < context.Length("DescribeCdnService.OperationLocks.Length"); i++) {
                DescribeCdnServiceResponse.LockReason lockReason = new DescribeCdnServiceResponse.LockReason();
                lockReason.LockReason_ = context.StringValue("DescribeCdnService.OperationLocks["+ i +"].LockReason");

                operationLocks.Add(lockReason);
            }
            describeCdnServiceResponse.OperationLocks = operationLocks;

            return describeCdnServiceResponse;
        }
DescribeCdnServiceResponseUnmarshaller