IncrementCustomerStopRequest.php
1.48 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
<?php
/**
* TOP API: taobao.increment.customer.stop request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class IncrementCustomerStopRequest
{
/**
* 应用要关闭增量消息服务的用户昵称
**/
private $nick;
/**
* 应用需要关闭用户的功能。取值可为get,notify和syn分别表示增量api取消息,主动发送消息和同步数据功能。用户关闭相应功能前,需应用已为用户经开通了相应的功能。这三个参数可无序任意组合。在关闭时,type里面的参数会根据应用订阅的类型进行相应的过虑。如应用只订阅主动通知,则默认值过滤后为get,notify,如果应用只订阅数据同步服务,默认值过滤后为syn。
**/
private $type;
private $apiParas = array();
public function setNick($nick)
{
$this->nick = $nick;
$this->apiParas["nick"] = $nick;
}
public function getNick()
{
return $this->nick;
}
public function setType($type)
{
$this->type = $type;
$this->apiParas["type"] = $type;
}
public function getType()
{
return $this->type;
}
public function getApiMethodName()
{
return "taobao.increment.customer.stop";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->nick,"nick");
RequestCheckUtil::checkMaxListSize($this->type,3,"type");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}