Aliyun.Acs.Mts.Transform.V20140618.ListAllCategoryResponseUnmarshaller.Unmarshall C# (CSharp) Метод

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

public static Unmarshall ( UnmarshallerContext context ) : ListAllCategoryResponse
context UnmarshallerContext
Результат Aliyun.Acs.Mts.Model.V20140618.ListAllCategoryResponse
        public static ListAllCategoryResponse Unmarshall(UnmarshallerContext context)
        {
            ListAllCategoryResponse listAllCategoryResponse = new ListAllCategoryResponse();

            listAllCategoryResponse.HttpResponse = context.HttpResponse;
            listAllCategoryResponse.RequestId = context.StringValue("ListAllCategory.RequestId");

            List<ListAllCategoryResponse.Category> categoryList = new List<ListAllCategoryResponse.Category>();
            for (int i = 0; i < context.Length("ListAllCategory.CategoryList.Length"); i++) {
                ListAllCategoryResponse.Category category = new ListAllCategoryResponse.Category();
                category.CateId = context.StringValue("ListAllCategory.CategoryList["+ i +"].CateId");
                category.CateName = context.StringValue("ListAllCategory.CategoryList["+ i +"].CateName");
                category.ParentId = context.StringValue("ListAllCategory.CategoryList["+ i +"].ParentId");
                category.Level = context.StringValue("ListAllCategory.CategoryList["+ i +"].Level");

                categoryList.Add(category);
            }
            listAllCategoryResponse.CategoryList = categoryList;

            return listAllCategoryResponse;
        }
ListAllCategoryResponseUnmarshaller