Exemple #1
0
        public static WeSubCategoryList QueryAllSubCategories(string cateId)
        {
            TkDebug.AssertArgumentNullOrEmpty(cateId, "cateId", null);

            string url = WeUtil.GetUrl(WeShopConst.ALL_SUB_CATE_URL);
            WeCategoryId request = new WeCategoryId(cateId);
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeSubCategoryList());
            return result;
        }
Exemple #2
0
        public static WeSubCategoryList QueryAllSubCategories(string cateId)
        {
            TkDebug.AssertArgumentNullOrEmpty(cateId, "cateId", null);

            string       url     = WeUtil.GetUrl(WeShopConst.ALL_SUB_CATE_URL);
            WeCategoryId request = new WeCategoryId(cateId);
            var          result  = WeUtil.PostToUri(url, request.WriteJson(), new WeSubCategoryList());

            return(result);
        }
Exemple #3
0
        public WeSkuList QueryAllProperties(string cateId)
        {
            TkDebug.AssertArgumentNullOrEmpty(cateId, "cateId", this);

            string url = WeUtil.GetUrl(WeShopConst.ALL_PROPERTY_URL);
            WeCategoryId request = new WeCategoryId(cateId);
            var result = WeUtil.PostToUri(url, WeShopConst.LIST_NAME_MODEL, request.WriteJson(), new WeSkuList());
            SkuTable = result.SkuTable;
            return this;
        }
Exemple #4
0
        public WeSkuList QueryAllProperties(string cateId)
        {
            TkDebug.AssertArgumentNullOrEmpty(cateId, "cateId", this);

            string       url     = WeUtil.GetUrl(WeShopConst.ALL_PROPERTY_URL);
            WeCategoryId request = new WeCategoryId(cateId);
            var          result  = WeUtil.PostToUri(url, WeShopConst.LIST_NAME_MODEL, request.WriteJson(), new WeSkuList());

            SkuTable = result.SkuTable;
            return(this);
        }