IncrementAuthorizeMessageGetRequest.php
3.56 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
<?php
/**
* TOP API: taobao.increment.authorize.message.get request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class IncrementAuthorizeMessageGetRequest
{
/**
* 消息的结束时间,消息所对应的操作时间的最大值。和start_modified街拍使用能过滤消通知消息的时间段。不传时:如果设置了start_modified,默认为与start_modified同一天的23:59:59;否则默认为调用接口当天的23:59:59。(格式:yyyy-MM-dd HH:mm:ss)
注意:start_modified和end_modified的日期必须在必须在同一天内,比如:start_modified设置2000-01-01 00:00:00,则end_modified必须设置为2000-01-01这个日期
**/
private $endModified;
/**
* 消息所属的用户nick,他用型应用必传,自用型不传
**/
private $nick;
/**
* 页码,取值范围:大于零的整数; 默认值:1,即返回第一页数据。
**/
private $pageNo;
/**
* 每页条数,取值范围:大于零的整数;最大值:200;默认值:40
**/
private $pageSize;
/**
* 消息的开始时间,消息所对应的操作时间的最小值和end_modified街拍使用能过滤消通知消息的时间段。不传时:如果设置了end_modified,默认为与 end_modified同一天的00:00:00,否则默认为调用接口当天的00:00:00。(格式:yyyy-MM-dd HH:mm:ss)
注意:start_modified和end_modified的日期必须在必须在同一天内,比如:start_modified设置2000-01-01 00:00:00,则end_modified必须设置为2000-01-01这个日期
**/
private $startModified;
/**
* 指定消息的状态,比如:ItemAdd,如果不填次参数,默认查询所有状态的数据,
**/
private $status;
/**
* 消息类型,比如:item
**/
private $topic;
private $apiParas = array();
public function setEndModified($endModified)
{
$this->endModified = $endModified;
$this->apiParas["end_modified"] = $endModified;
}
public function getEndModified()
{
return $this->endModified;
}
public function setNick($nick)
{
$this->nick = $nick;
$this->apiParas["nick"] = $nick;
}
public function getNick()
{
return $this->nick;
}
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 setStartModified($startModified)
{
$this->startModified = $startModified;
$this->apiParas["start_modified"] = $startModified;
}
public function getStartModified()
{
return $this->startModified;
}
public function setStatus($status)
{
$this->status = $status;
$this->apiParas["status"] = $status;
}
public function getStatus()
{
return $this->status;
}
public function setTopic($topic)
{
$this->topic = $topic;
$this->apiParas["topic"] = $topic;
}
public function getTopic()
{
return $this->topic;
}
public function getApiMethodName()
{
return "taobao.increment.authorize.message.get";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkMinValue($this->pageNo,1,"pageNo");
RequestCheckUtil::checkMaxValue($this->pageSize,200,"pageSize");
RequestCheckUtil::checkMinValue($this->pageSize,1,"pageSize");
RequestCheckUtil::checkNotNull($this->topic,"topic");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}