コード例 #1
0
ファイル: eBayItemBiz.cs プロジェクト: tomochandv/Test
        /// <summary>
        /// eBay 카테고리를 검색한다.
        /// </summary>
        /// <param name="id">사이트 ID</param>
        /// <param name="serchString">검색어</param>
        /// <returns></returns>
        public List<SuggestedCategories> GetCategoryData(int id, string serchString)
        {
            var req = new GetSuggestedCategoriesRequest
            {
                SiteID = id
                ,
                Keyword = serchString
            };

            var res = new ItemService(apiUrl).GetSuggestedCategories(req);
            return res.Response;
        }
コード例 #2
0
ファイル: ItemService.cs プロジェクト: tomochandv/Test
 public GetSuggestedCategoriesResponse GetSuggestedCategories(GetSuggestedCategoriesRequest Request)
 {
     return GetClient().GetSuggestedCategories(Request);
 }
コード例 #3
0
 public void Read(TProtocol iprot)
 {
     TField field;
     iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 1:
       if (field.Type == TType.Struct) {
     Request = new GetSuggestedCategoriesRequest();
     Request.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
コード例 #4
0
 public void send_GetSuggestedCategories(GetSuggestedCategoriesRequest Request)
 {
     oprot_.WriteMessageBegin(new TMessage("GetSuggestedCategories", TMessageType.Call, seqid_));
     GetSuggestedCategories_args args = new GetSuggestedCategories_args();
     args.Request = Request;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
コード例 #5
0
 public GetSuggestedCategoriesResponse GetSuggestedCategories(GetSuggestedCategoriesRequest Request)
 {
     send_GetSuggestedCategories(Request);
     return recv_GetSuggestedCategories();
 }