PictureGetRequest.php
3.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?php
/**
* TOP API: taobao.picture.get request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class PictureGetRequest
{
/**
* 是否删除,unfroze代表没有删除
**/
private $deleted;
/**
* 查询上传结束时间点,格式:yyyy-MM-dd HH:mm:ss
**/
private $endDate;
/**
* 图片被修改的时间点,格式:yyyy-MM-dd HH:mm:ss。查询此修改时间点之后到目前的图片。
**/
private $modifiedTime;
/**
* 图片查询结果排序,time:desc按上传时间从晚到早(默认), time:asc按上传时间从早到晚,sizes:desc按图片从大到小,sizes:asc按图片从小到大,默认time:desc
**/
private $orderBy;
/**
* 页码.传入值为1代表第一页,传入值为2代表第二页,依此类推,默认值为1
**/
private $pageNo;
/**
* 每页条数.每页返回最多返回100条,默认值40
**/
private $pageSize;
/**
* 图片分类ID
**/
private $pictureCategoryId;
/**
* 图片ID
**/
private $pictureId;
/**
* 查询上传开始时间点,格式:yyyy-MM-dd HH:mm:ss
**/
private $startDate;
/**
* 图片标题,最大长度50字符,中英文都算一字符
**/
private $title;
private $apiParas = array();
public function setDeleted($deleted)
{
$this->deleted = $deleted;
$this->apiParas["deleted"] = $deleted;
}
public function getDeleted()
{
return $this->deleted;
}
public function setEndDate($endDate)
{
$this->endDate = $endDate;
$this->apiParas["end_date"] = $endDate;
}
public function getEndDate()
{
return $this->endDate;
}
public function setModifiedTime($modifiedTime)
{
$this->modifiedTime = $modifiedTime;
$this->apiParas["modified_time"] = $modifiedTime;
}
public function getModifiedTime()
{
return $this->modifiedTime;
}
public function setOrderBy($orderBy)
{
$this->orderBy = $orderBy;
$this->apiParas["order_by"] = $orderBy;
}
public function getOrderBy()
{
return $this->orderBy;
}
public function setPageNo($pageNo)
{
$this->pageNo = $pageNo;
$this->apiParas["page_no"] = $pageNo;
}
public function getPageNo()
{
return $this->pageNo;
}
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
$this->apiParas["page_size"] = $pageSize;
}
public function getPageSize()
{
return $this->pageSize;
}
public function setPictureCategoryId($pictureCategoryId)
{
$this->pictureCategoryId = $pictureCategoryId;
$this->apiParas["picture_category_id"] = $pictureCategoryId;
}
public function getPictureCategoryId()
{
return $this->pictureCategoryId;
}
public function setPictureId($pictureId)
{
$this->pictureId = $pictureId;
$this->apiParas["picture_id"] = $pictureId;
}
public function getPictureId()
{
return $this->pictureId;
}
public function setStartDate($startDate)
{
$this->startDate = $startDate;
$this->apiParas["start_date"] = $startDate;
}
public function getStartDate()
{
return $this->startDate;
}
public function setTitle($title)
{
$this->title = $title;
$this->apiParas["title"] = $title;
}
public function getTitle()
{
return $this->title;
}
public function getApiMethodName()
{
return "taobao.picture.get";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}