Aliyun.Acs.CloudAPI.Transform.V20160714.DescribePurchasedApiGroupsResponseUnmarshaller.Unmarshall C# (CSharp) Метод

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

public static Unmarshall ( UnmarshallerContext context ) : DescribePurchasedApiGroupsResponse
context UnmarshallerContext
Результат DescribePurchasedApiGroupsResponse
        public static DescribePurchasedApiGroupsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribePurchasedApiGroupsResponse describePurchasedApiGroupsResponse = new DescribePurchasedApiGroupsResponse();

            describePurchasedApiGroupsResponse.HttpResponse = context.HttpResponse;
            describePurchasedApiGroupsResponse.RequestId = context.StringValue("DescribePurchasedApiGroups.RequestId");
            describePurchasedApiGroupsResponse.TotalCount = context.IntegerValue("DescribePurchasedApiGroups.TotalCount");
            describePurchasedApiGroupsResponse.PageSize = context.IntegerValue("DescribePurchasedApiGroups.PageSize");
            describePurchasedApiGroupsResponse.PageNumber = context.IntegerValue("DescribePurchasedApiGroups.PageNumber");

            List<DescribePurchasedApiGroupsResponse.PurchasedApiGroupAttribute> purchasedApiGroupAttributes = new List<DescribePurchasedApiGroupsResponse.PurchasedApiGroupAttribute>();
            for (int i = 0; i < context.Length("DescribePurchasedApiGroups.PurchasedApiGroupAttributes.Length"); i++) {
                DescribePurchasedApiGroupsResponse.PurchasedApiGroupAttribute purchasedApiGroupAttribute = new DescribePurchasedApiGroupsResponse.PurchasedApiGroupAttribute();
                purchasedApiGroupAttribute.GroupId = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].GroupId");
                purchasedApiGroupAttribute.GroupName = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].GroupName");
                purchasedApiGroupAttribute.Description = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].Description");
                purchasedApiGroupAttribute.PurchasedTime = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].PurchasedTime");
                purchasedApiGroupAttribute.ExpireTime = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].ExpireTime");
                purchasedApiGroupAttribute.RegionId = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].RegionId");
                purchasedApiGroupAttribute.BillingType = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].BillingType");
                purchasedApiGroupAttribute.InvokeTimesMax = context.LongValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].InvokeTimesMax");
                purchasedApiGroupAttribute.InvokeTimesNow = context.LongValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].InvokeTimesNow");

                purchasedApiGroupAttributes.Add(purchasedApiGroupAttribute);
            }
            describePurchasedApiGroupsResponse.PurchasedApiGroupAttributes = purchasedApiGroupAttributes;

            return describePurchasedApiGroupsResponse;
        }
DescribePurchasedApiGroupsResponseUnmarshaller