コード例 #1
0
ファイル: WeSkuList.cs プロジェクト: ZLLselfRedeem/zllinmitu
        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;
        }
コード例 #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);
        }
コード例 #3
0
ファイル: WeSkuList.cs プロジェクト: ZLLselfRedeem/zllinmitu
        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;
        }
コード例 #4
0
        public WeSkuList QueryAllSku(string cateId)
        {
            TkDebug.AssertArgumentNullOrEmpty(cateId, "cateId", this);

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

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