GTStrategy.php
2.5 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
<?php
class GTStrategy extends GTApiRequest
{
//表示该消息在用户在线时推送个推通道,用户离线时推送厂商通道;
const STRATEGY_GT_FIRST = 1;
//表示该消息只通过厂商通道策略下发,不考虑用户是否在线;
const STRATEGY_THIRD_ONLY = 2;
//表示该消息只通过个推通道下发,不考虑用户是否在线
const STRATEGY_GT_ONLY = 3;
//表示该消息优先从厂商通道下发,若消息内容在厂商通道代发失败后会从个推通道下发。
const STRATEGY_THIRD_FIRST = 4;
private $default;
private $ios;
private $hw;
private $xm;
private $mz;
private $op;
private $vv;
private $st;
private $hx;
private $hwq;
public function getDefault()
{
return $this->default;
}
public function setDefault($default)
{
$this->default = $default;
$this->apiParam["default"] = $default;
}
public function getIos()
{
return $this->ios;
}
public function setIos($ios)
{
$this->ios = $ios;
$this->apiParam["ios"] = $ios;
}
public function getHw()
{
return $this->hw;
}
public function setHw($hw)
{
$this->hw = $hw;
$this->apiParam["hw"] = $hw;
}
public function getXm()
{
return $this->xm;
}
public function setXm($xm)
{
$this->xm = $xm;
$this->apiParam["xm"] = $xm;
}
public function getMz()
{
return $this->mz;
}
public function setMz($mz)
{
$this->mz = $mz;
$this->apiParam["mz"] = $mz;
}
public function getOp()
{
return $this->op;
}
public function setOp($op)
{
$this->op = $op;
$this->apiParam["op"] = $op;
}
public function getVv()
{
return $this->vv;
}
public function setVv($vv)
{
$this->vv = $vv;
$this->apiParam["vv"] = $vv;
}
public function getSt()
{
return $this->st;
}
public function setSt($st)
{
$this->st = $st;
$this->apiParam["st"] = $st;
}
public function getHx()
{
return $this->hx;
}
public function setHx($hx)
{
$this->hx = $hx;
$this->apiParam["hx"] = $hx;
}
public function getHwq()
{
return $this->hwq;
}
public function setHwq($hwq)
{
$this->hwq = $hwq;
$this->apiParam["hwq"] = $hwq;
}
}