/// <summary>
        /// 添加分类
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public AddCategoryResponse AddCategory(AddCategoryRequest request)
        {
            AddCategoryResponse response = new AddCategoryResponse();

            try
            {
                response = acsClient.GetAcsResponse(request);
            }
            catch (Exception ex)
            {
            }
            return(response);
        }
Exemple #2
0
        public static AddCategoryResponse Unmarshall(UnmarshallerContext context)
        {
            AddCategoryResponse addCategoryResponse = new AddCategoryResponse();

            addCategoryResponse.HttpResponse = context.HttpResponse;
            addCategoryResponse.RequestId    = context.StringValue("AddCategory.RequestId");

            AddCategoryResponse.AddCategory_Category category = new AddCategoryResponse.AddCategory_Category();
            category.CateId              = context.StringValue("AddCategory.Category.CateId");
            category.CateName            = context.StringValue("AddCategory.Category.CateName");
            category.ParentId            = context.StringValue("AddCategory.Category.ParentId");
            category.Level               = context.StringValue("AddCategory.Category.Level");
            addCategoryResponse.Category = category;

            return(addCategoryResponse);
        }
Exemple #3
0
        public static AddCategoryResponse Unmarshall(UnmarshallerContext context)
        {
            AddCategoryResponse addCategoryResponse = new AddCategoryResponse()
            {
                HttpResponse = context.HttpResponse,
                RequestId    = context.StringValue("AddCategory.RequestId")
            };

            AddCategoryResponse.Category_ category = new AddCategoryResponse.Category_()
            {
                CateId   = context.StringValue("AddCategory.Category.CateId"),
                CateName = context.StringValue("AddCategory.Category.CateName"),
                ParentId = context.StringValue("AddCategory.Category.ParentId"),
                Level    = context.StringValue("AddCategory.Category.Level")
            };
            addCategoryResponse.Category = category;

            return(addCategoryResponse);
        }