基类:
 1淘宝API系列(数据结构对象)using System;
 2淘宝API系列(数据结构对象)using System.Collections.Generic;
 3淘宝API系列(数据结构对象)using System.Linq;
 4淘宝API系列(数据结构对象)using System.Text;
 5淘宝API系列(数据结构对象)
 6淘宝API系列(数据结构对象)namespace TaoBao.API.Model
 7

Item对象:
  1淘宝API系列(数据结构对象)using System;
  2淘宝API系列(数据结构对象)using System.Collections.Generic;
  3淘宝API系列(数据结构对象)using System.Linq;
  4淘宝API系列(数据结构对象)using System.Text;
  5淘宝API系列(数据结构对象)using System.Xml.Serialization;
  6淘宝API系列(数据结构对象)
  7淘宝API系列(数据结构对象)
  8淘宝API系列(数据结构对象)namespace TaoBao.API.Model.ItemAPI
  9

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 { getset; }
17         [XmlElement(ElementName = "url")]
18         public string url { getset; }
19         [XmlElement(ElementName = "position")]
20         public string position { getset; }
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 { getset; }
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 { getset; }
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 { getset; }
29         [XmlElement(ElementName = "category_lists")]
30         public category_lists categorylists { getset; }
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 { getset; }
16         [XmlElement(ElementName = "iid")]
17         public string iid{ getset; }
18         [XmlElement(ElementName = "properties")]
19         public string properties{ getset; }
20         [XmlElement(ElementName = "quantity")]
21         public string quantity{ getset; }
22         [XmlElement(ElementName = "price")]
23         public string price{ getset; }
24         [XmlElement(ElementName = "outer_id")]
25         public string outer_id{ getset; }
26         [XmlElement(ElementName = "created")]
27         public string created{ getset; }
28         [XmlElement(ElementName = "modified")]
29         public string modified{ getset; }
30         [XmlElement(ElementName = "status")]
31         public string status{ getset; }
32     }
33 }
34 

相关文章: