淘宝API系列(数据结构对象)
基类:
Item对象:
ItemCategory对象:
 1 using System;
using System;
2 using System.Collections.Generic;
using System.Collections.Generic;
3 using System.Linq;
using System.Linq;
4 using System.Text;
using System.Text;
5
6 namespace TaoBao.API.Model
namespace TaoBao.API.Model
7 {
{ 
8 public abstract class AbstractModel
    public abstract class AbstractModel
9 {
    {
10
11 }
    }
12 }
}
13
 using System;
using System;2
 using System.Collections.Generic;
using System.Collections.Generic;3
 using System.Linq;
using System.Linq;4
 using System.Text;
using System.Text;5

6
 namespace TaoBao.API.Model
namespace TaoBao.API.Model7
 {
{ 8
 public abstract class AbstractModel
    public abstract class AbstractModel9
 {
    {10

11
 }
    }12
 }
}13

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

7

8
 namespace TaoBao.API.Model.ItemAPI
namespace TaoBao.API.Model.ItemAPI9
 {
{10
 public class Item : AbstractModel
    public class Item : AbstractModel11
 {
    {12
 [XmlElement(ElementName = "iid")]
        [XmlElement(ElementName = "iid")]13
 public string iid { get; set; }
        public string iid { get; set; }14
 [XmlElement(ElementName = "detail_url")]
        [XmlElement(ElementName = "detail_url")]15
 public string detail_url { get; set; }
        public string detail_url { get; set; }16
 [XmlElement(ElementName = "num_iid")]
        [XmlElement(ElementName = "num_iid")]17
 public string num_iid { get; set; }
        public string num_iid { get; set; }18
 [XmlElement(ElementName = "title")]
        [XmlElement(ElementName = "title")]19
 public string title { get; set; }
        public string title { get; set; }20
 [XmlElement(ElementName = "nick")]
        [XmlElement(ElementName = "nick")]21
 public string nick { get; set; }
        public string nick { get; set; }22
 [XmlElement(ElementName = "type")]
        [XmlElement(ElementName = "type")]23
 public string type { get; set; }
        public string type { get; set; }24
 [XmlElement(ElementName = "cid")]
        [XmlElement(ElementName = "cid")]25
 public string cid { get; set; }
        public string cid { get; set; }26
 [XmlElement(ElementName = "seller_cids")]
        [XmlElement(ElementName = "seller_cids")]27
 public string seller_cids { get; set; }
        public string seller_cids { get; set; }28
 [XmlElement(ElementName = "props")]
        [XmlElement(ElementName = "props")]29
 public string props { get; set; }
        public string props { get; set; }30
 [XmlElement(ElementName = "input_pids")]
        [XmlElement(ElementName = "input_pids")]31
 public string input_pids { get; set; }
        public string input_pids { get; set; }32
 [XmlElement(ElementName = "input_str")]
        [XmlElement(ElementName = "input_str")]33
 public string input_str { get; set; }
        public string input_str { get; set; }34
 [XmlElement(ElementName = "desc")]
        [XmlElement(ElementName = "desc")]35
 public string desc { get; set; }
        public string desc { get; set; }36
 [XmlElement(ElementName = "pic_path")]
        [XmlElement(ElementName = "pic_path")]37
 public string pic_path { get; set; }
        public string pic_path { get; set; }38
 [XmlElement(ElementName = "num")]
        [XmlElement(ElementName = "num")]39
 public string num{ get; set; }
        public string num{ get; set; }40
 [XmlElement(ElementName = "valid_thru")]
        [XmlElement(ElementName = "valid_thru")]41
 public string valid_thru{ get; set; }
        public string valid_thru{ get; set; }42
 [XmlElement(ElementName = "list_time")]
        [XmlElement(ElementName = "list_time")]43
 public string list_time{ get; set; }
        public string list_time{ get; set; }44
 [XmlElement(ElementName = "delist_time")]
        [XmlElement(ElementName = "delist_time")]45
 public string delist_time{ get; set; }
        public string delist_time{ get; set; }46
 [XmlElement(ElementName = "stuff_status")]
        [XmlElement(ElementName = "stuff_status")]47
 public string stuff_status{ get; set; }
        public string stuff_status{ get; set; }48
 [XmlElement(ElementName = "location")]
        [XmlElement(ElementName = "location")]49
 public ShipAPI.Area location{ get; set; }
        public ShipAPI.Area location{ get; set; }50
 [XmlElement(ElementName = "price")]
        [XmlElement(ElementName = "price")]51
 public string price{ get; set; }
        public string price{ get; set; }52
 [XmlElement(ElementName = "post_fee")]
        [XmlElement(ElementName = "post_fee")]53
 public string post_fee{ get; set; }
        public string post_fee{ get; set; }54
 [XmlElement(ElementName = "express_fee")]
        [XmlElement(ElementName = "express_fee")]55
 public string express_fee{ get; set; }
        public string express_fee{ get; set; }56
 [XmlElement(ElementName = "ems_fee")]
        [XmlElement(ElementName = "ems_fee")]57
 public string ems_fee{ get; set; }
        public string ems_fee{ get; set; }58
 [XmlElement(ElementName = "has_discount")]
        [XmlElement(ElementName = "has_discount")]59
 public string has_discount{ get; set; }
        public string has_discount{ get; set; }60
 [XmlElement(ElementName = "freight_payer")]
        [XmlElement(ElementName = "freight_payer")]61
 public string freight_payer{ get; set; }
        public string freight_payer{ get; set; }62
 [XmlElement(ElementName = "has_invoice")]
        [XmlElement(ElementName = "has_invoice")]63
 public string has_invoice{ get; set; }
        public string has_invoice{ get; set; }64
 [XmlElement(ElementName = "has_warranty")]
        [XmlElement(ElementName = "has_warranty")]65
 public string has_warranty{ get; set; }
        public string has_warranty{ get; set; }66
 [XmlElement(ElementName = "has_showcase")]
        [XmlElement(ElementName = "has_showcase")]67
 public string has_showcase{ get; set; }
        public string has_showcase{ get; set; }68
 [XmlElement(ElementName = "modified")]
        [XmlElement(ElementName = "modified")]69
 public string modified{ get; set; }
        public string modified{ get; set; }70
 [XmlElement(ElementName = "increment")]
        [XmlElement(ElementName = "increment")]71
 public string increment{ get; set; }
        public string increment{ get; set; }72
 [XmlElement(ElementName = "auto_repost")]
        [XmlElement(ElementName = "auto_repost")]73
 public string auto_repost{ get; set; }
        public string auto_repost{ get; set; }74
 [XmlElement(ElementName = "approve_status")]
        [XmlElement(ElementName = "approve_status")]75
 public string approve_status{ get; set; }
        public string approve_status{ get; set; }76
 [XmlElement(ElementName = "postage_id")]
        [XmlElement(ElementName = "postage_id")]77
 public string postage_id{ get; set; }
        public string postage_id{ get; set; }78
 [XmlElement(ElementName = "product_id")]
        [XmlElement(ElementName = "product_id")]79
 public string product_id{ get; set; }
        public string product_id{ get; set; }80
 [XmlElement(ElementName = "auction_point")]
        [XmlElement(ElementName = "auction_point")]81
 public string auction_point{ get; set; }
        public string auction_point{ get; set; }82
 [XmlElement(ElementName = "property_alias")]
        [XmlElement(ElementName = "property_alias")]83
 public string property_alias{ get; set; }
        public string property_alias{ get; set; }84
 [XmlElement(ElementName = "ItemImgs")]
        [XmlElement(ElementName = "ItemImgs")]85
 public List<ItemImg> ItemImgs{ get; set; }
        public List<ItemImg> ItemImgs{ get; set; }86
 [XmlElement(ElementName = "PropImgs")]
        [XmlElement(ElementName = "PropImgs")]87
 public List<PropImg> PropImgs{ get; set; }
        public List<PropImg> PropImgs{ get; set; }88
 [XmlElement(ElementName = "Sku")]
        [XmlElement(ElementName = "Sku")]89
 public List<Sku> Skus{ get; set; }
        public List<Sku> Skus{ get; set; }90
 [XmlElement(ElementName = "outer_id")]
        [XmlElement(ElementName = "outer_id")]91
 public string outer_id{ get; set; }
        public string outer_id{ get; set; }92
 [XmlElement(ElementName = "is_virtural")]
        [XmlElement(ElementName = "is_virtural")]93
 public string is_virtural{ get; set; }
        public string is_virtural{ get; set; }94
 [XmlElement(ElementName = "is_taobao")]
        [XmlElement(ElementName = "is_taobao")]95
 public string is_taobao{ get; set; }
        public string is_taobao{ get; set; }96
 [XmlElement(ElementName = "is_ex")]
        [XmlElement(ElementName = "is_ex")]97
 public string is_ex{ get; set; }
        public string is_ex{ get; set; }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对象: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
 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对象: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
 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对象: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
 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对象: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
 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对象: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
 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
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
 
                    
                

 
     
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号