淘宝API系列(数据结构对象)

基类:
 1 using  System;
 2 using  System.Collections.Generic;
 3 using  System.Linq;
 4 using  System.Text;
 5
 6 namespace  TaoBao.API.Model
 7 ExpandedBlockStart.gifContractedBlock.gif
 8    public abstract class AbstractModel
 9ExpandedSubBlockStart.gifContractedSubBlock.gif    {
10
11    }

12}

13

Item对象:
  1 using  System;
  2 using  System.Collections.Generic;
  3 using  System.Linq;
  4 using  System.Text;
  5 using  System.Xml.Serialization;
  6
  7
  8 namespace  TaoBao.API.Model.ItemAPI
  9 ExpandedBlockStart.gifContractedBlock.gif {
 10    public class Item : AbstractModel
 11ExpandedSubBlockStart.gifContractedSubBlock.gif    {
 12        [XmlElement(ElementName = "iid")]
 13ExpandedSubBlockStart.gifContractedSubBlock.gif        public string iid getset; }
 14        [XmlElement(ElementName = "detail_url")]
 15ExpandedSubBlockStart.gifContractedSubBlock.gif        public string detail_url getset; }
 16        [XmlElement(ElementName = "num_iid")]
 17ExpandedSubBlockStart.gifContractedSubBlock.gif        public string num_iid getset; }
 18        [XmlElement(ElementName = "title")]
 19ExpandedSubBlockStart.gifContractedSubBlock.gif        public string title getset; }
 20        [XmlElement(ElementName = "nick")]
 21ExpandedSubBlockStart.gifContractedSubBlock.gif        public string nick getset; }
 22        [XmlElement(ElementName = "type")]
 23ExpandedSubBlockStart.gifContractedSubBlock.gif        public string type getset; }
 24        [XmlElement(ElementName = "cid")]
 25ExpandedSubBlockStart.gifContractedSubBlock.gif        public string cid getset; }
 26        [XmlElement(ElementName = "seller_cids")]
 27ExpandedSubBlockStart.gifContractedSubBlock.gif        public string seller_cids getset; }
 28        [XmlElement(ElementName = "props")]
 29ExpandedSubBlockStart.gifContractedSubBlock.gif        public string props getset; }
 30        [XmlElement(ElementName = "input_pids")]
 31ExpandedSubBlockStart.gifContractedSubBlock.gif        public string input_pids getset; }
 32        [XmlElement(ElementName = "input_str")]
 33ExpandedSubBlockStart.gifContractedSubBlock.gif        public string input_str getset; }
 34        [XmlElement(ElementName = "desc")]
 35ExpandedSubBlockStart.gifContractedSubBlock.gif        public string desc getset; }
 36        [XmlElement(ElementName = "pic_path")]
 37ExpandedSubBlockStart.gifContractedSubBlock.gif        public string pic_path getset; }
 38        [XmlElement(ElementName = "num")]
 39ExpandedSubBlockStart.gifContractedSubBlock.gif        public string numgetset; }
 40        [XmlElement(ElementName = "valid_thru")]
 41ExpandedSubBlockStart.gifContractedSubBlock.gif        public string valid_thrugetset; }
 42        [XmlElement(ElementName = "list_time")]
 43ExpandedSubBlockStart.gifContractedSubBlock.gif        public string list_timegetset; }
 44        [XmlElement(ElementName = "delist_time")]
 45ExpandedSubBlockStart.gifContractedSubBlock.gif        public string delist_timegetset; }
 46        [XmlElement(ElementName = "stuff_status")]
 47ExpandedSubBlockStart.gifContractedSubBlock.gif        public string stuff_statusgetset; }
 48        [XmlElement(ElementName = "location")]
 49ExpandedSubBlockStart.gifContractedSubBlock.gif        public ShipAPI.Area locationgetset; }
 50        [XmlElement(ElementName = "price")]
 51ExpandedSubBlockStart.gifContractedSubBlock.gif        public string pricegetset; }
 52        [XmlElement(ElementName = "post_fee")]
 53ExpandedSubBlockStart.gifContractedSubBlock.gif        public string post_feegetset; }
 54        [XmlElement(ElementName = "express_fee")]
 55ExpandedSubBlockStart.gifContractedSubBlock.gif        public string express_feegetset; }
 56        [XmlElement(ElementName = "ems_fee")]
 57ExpandedSubBlockStart.gifContractedSubBlock.gif        public string ems_feegetset; }
 58        [XmlElement(ElementName = "has_discount")]
 59ExpandedSubBlockStart.gifContractedSubBlock.gif        public string has_discountgetset; }
 60        [XmlElement(ElementName = "freight_payer")]
 61ExpandedSubBlockStart.gifContractedSubBlock.gif        public string freight_payergetset; }
 62        [XmlElement(ElementName = "has_invoice")]
 63ExpandedSubBlockStart.gifContractedSubBlock.gif        public string has_invoicegetset; }
 64        [XmlElement(ElementName = "has_warranty")]
 65ExpandedSubBlockStart.gifContractedSubBlock.gif        public string has_warrantygetset; }
 66        [XmlElement(ElementName = "has_showcase")]
 67ExpandedSubBlockStart.gifContractedSubBlock.gif        public string has_showcasegetset; }
 68        [XmlElement(ElementName = "modified")]
 69ExpandedSubBlockStart.gifContractedSubBlock.gif        public string modifiedgetset; }
 70        [XmlElement(ElementName = "increment")]
 71ExpandedSubBlockStart.gifContractedSubBlock.gif        public string incrementgetset; }
 72        [XmlElement(ElementName = "auto_repost")]
 73ExpandedSubBlockStart.gifContractedSubBlock.gif        public string auto_repostgetset; }
 74        [XmlElement(ElementName = "approve_status")]
 75ExpandedSubBlockStart.gifContractedSubBlock.gif        public string approve_statusgetset; }
 76        [XmlElement(ElementName = "postage_id")]
 77ExpandedSubBlockStart.gifContractedSubBlock.gif        public string postage_idgetset; }
 78        [XmlElement(ElementName = "product_id")]
 79ExpandedSubBlockStart.gifContractedSubBlock.gif        public string product_idgetset; }
 80        [XmlElement(ElementName = "auction_point")]
 81ExpandedSubBlockStart.gifContractedSubBlock.gif        public string auction_pointgetset; }
 82        [XmlElement(ElementName = "property_alias")]
 83ExpandedSubBlockStart.gifContractedSubBlock.gif        public string property_aliasgetset; }
 84        [XmlElement(ElementName = "ItemImgs")]
 85ExpandedSubBlockStart.gifContractedSubBlock.gif        public List<ItemImg> ItemImgsgetset; }
 86        [XmlElement(ElementName = "PropImgs")]
 87ExpandedSubBlockStart.gifContractedSubBlock.gif        public List<PropImg> PropImgsgetset; }
 88        [XmlElement(ElementName = "Sku")]
 89ExpandedSubBlockStart.gifContractedSubBlock.gif        public List<Sku> Skusgetset; }
 90        [XmlElement(ElementName = "outer_id")]
 91ExpandedSubBlockStart.gifContractedSubBlock.gif        public string outer_idgetset; }
 92        [XmlElement(ElementName = "is_virtural")]
 93ExpandedSubBlockStart.gifContractedSubBlock.gif        public string is_virturalgetset; }
 94        [XmlElement(ElementName = "is_taobao")]
 95ExpandedSubBlockStart.gifContractedSubBlock.gif        public string is_taobaogetset; }
 96        [XmlElement(ElementName = "is_ex")]
 97ExpandedSubBlockStart.gifContractedSubBlock.gif        public string is_exgetset; }
 98    }

 99}

100

ItemCategory对象:

 1  using  System;
 2  using  System.Collections.Generic;
 3  using  System.Linq;
 4  using  System.Text;
 5 
 6  namespace  TaoBao.API.Model.ItemAPI
 7  {
 8 
 9       public   class  ItemCategory
10      {
11           public   string  category_name;
12           public   string  count;
13           public   string  url;
14      }
15  }
16 
ItemImg对象:

 1  using  System;
 2  using  System.Collections.Generic;
 3  using  System.Linq;
 4  using  System.Text;
 5  using  System.Xml.Serialization;
 6 
 7  namespace  TaoBao.API.Model.ItemAPI
 8  {
 9 
10       ///   <summary>
11       ///  商品图片
12       ///   </summary>
13       public   class  ItemImg
14      {
15          [XmlElement(ElementName  =   " itemimg_id " )]
16           public   string  itemimg_id {  get set ; }
17          [XmlElement(ElementName  =   " url " )]
18           public   string  url {  get set ; }
19          [XmlElement(ElementName  =   " position " )]
20           public   string  position {  get set ; }
21      }
22  }
23 
ItemSearch对象:

 1  using  System;
 2  using  System.Collections.Generic;
 3  using  System.Linq;
 4  using  System.Text;
 5  using  System.Xml.Serialization;
 6 
 7  namespace  TaoBao.API.Model.ItemAPI
 8  {
 9 
10       public   class  ItemSearch
11      {
12          [XmlElement(ElementName  =   " item_list " )]
13           public  List < Item >  itemList {  get set ; }
14          [XmlElement(ElementName  =   " category_list " )]
15           public  List < ItemCategory >  categoryList;
16      }
17       public   class  item_lists {
18          [XmlElement(ElementName  =   " item_list " )]
19           public  List < Item >  itemList {  get set ; }
20      }
21 
22       public   class  category_lists {
23          [XmlElement(ElementName  =   " category_list " )]
24           public  List < ItemCategory >  categoryList;
25      }
26       public   class  ItemSearchList {
27          [XmlElement(ElementName  =   " item_lists " )]
28           public  item_lists itemlists {  get set ; }
29          [XmlElement(ElementName  =   " category_lists " )]
30           public  category_lists categorylists {  get set ; }
31      }
32  }
33 
Postage对象:

 1  using  System;
 2  using  System.Collections.Generic;
 3  using  System.Linq;
 4  using  System.Text;
 5 
 6  namespace  TaoBao.API.Model.ItemAPI
 7  {
 8       public   class  Postage
 9      {
10 
11           public   string  postage_id;
12           public   string  name;
13           public   string  memo;
14           public  DateTime created;
15           public  DateTime modified;
16           public   string  post_price;
17           public   string  post_increase;
18           public   string  express_price;
19           public   string  express_increase;
20           public   string  ems_price;
21           public   string  ems_increase;
22           public  PostageMode[] postage_mode_list;
23      }
24  }
25 
PostageMode对象:

 1  using  System;
 2  using  System.Collections.Generic;
 3  using  System.Linq;
 4  using  System.Text;
 5 
 6  namespace  TaoBao.API.Model.ItemAPI
 7  {
 8       public   class  PostageMode
 9      {
10           public   string  postage_id;
11           public   string  postage_mode_id;
12           public   string  postage_mode_type;
13           public   string  dest;
14           public   string  price;
15           public   string  increase;
16      }
17  }
18 
Sku对象:
 1  using  System;
 2  using  System.Collections.Generic;
 3  using  System.Linq;
 4  using  System.Text;
 5  using  System.Xml.Serialization;
 6 
 7  namespace  TaoBao.API.Model.ItemAPI
 8  {
 9       ///   <summary>
10       ///  商品属性
11       ///   </summary>
12       public   class  Sku
13      {
14          [XmlElement(ElementName  =   " sku_id " )]
15           public   string  sku_id {  get set ; }
16          [XmlElement(ElementName  =   " iid " )]
17           public   string  iid{  get set ; }
18          [XmlElement(ElementName  =   " properties " )]
19           public   string  properties{  get set ; }
20          [XmlElement(ElementName  =   " quantity " )]
21           public   string  quantity{  get set ; }
22          [XmlElement(ElementName  =   " price " )]
23           public   string  price{  get set ; }
24          [XmlElement(ElementName  =   " outer_id " )]
25           public   string  outer_id{  get set ; }
26          [XmlElement(ElementName  =   " created " )]
27           public   string  created{  get set ; }
28          [XmlElement(ElementName  =   " modified " )]
29           public   string  modified{  get set ; }
30          [XmlElement(ElementName  =   " status " )]
31           public   string  status{  get set ; }
32      }
33  }
34 

转载于:https://www.cnblogs.com/bbqqqbq/archive/2009/08/20/1550950.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值