GTStrategy.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?php
  2. class GTStrategy extends GTApiRequest
  3. {
  4. //表示该消息在用户在线时推送个推通道,用户离线时推送厂商通道;
  5. const STRATEGY_GT_FIRST = 1;
  6. //表示该消息只通过厂商通道策略下发,不考虑用户是否在线;
  7. const STRATEGY_THIRD_ONLY = 2;
  8. //表示该消息只通过个推通道下发,不考虑用户是否在线
  9. const STRATEGY_GT_ONLY = 3;
  10. //表示该消息优先从厂商通道下发,若消息内容在厂商通道代发失败后会从个推通道下发。
  11. const STRATEGY_THIRD_FIRST = 4;
  12. private $default;
  13. private $ios;
  14. private $hw;
  15. private $xm;
  16. private $mz;
  17. private $op;
  18. private $vv;
  19. private $st;
  20. private $hx;
  21. private $hwq;
  22. public function getDefault()
  23. {
  24. return $this->default;
  25. }
  26. public function setDefault($default)
  27. {
  28. $this->default = $default;
  29. $this->apiParam["default"] = $default;
  30. }
  31. public function getIos()
  32. {
  33. return $this->ios;
  34. }
  35. public function setIos($ios)
  36. {
  37. $this->ios = $ios;
  38. $this->apiParam["ios"] = $ios;
  39. }
  40. public function getHw()
  41. {
  42. return $this->hw;
  43. }
  44. public function setHw($hw)
  45. {
  46. $this->hw = $hw;
  47. $this->apiParam["hw"] = $hw;
  48. }
  49. public function getXm()
  50. {
  51. return $this->xm;
  52. }
  53. public function setXm($xm)
  54. {
  55. $this->xm = $xm;
  56. $this->apiParam["xm"] = $xm;
  57. }
  58. public function getMz()
  59. {
  60. return $this->mz;
  61. }
  62. public function setMz($mz)
  63. {
  64. $this->mz = $mz;
  65. $this->apiParam["mz"] = $mz;
  66. }
  67. public function getOp()
  68. {
  69. return $this->op;
  70. }
  71. public function setOp($op)
  72. {
  73. $this->op = $op;
  74. $this->apiParam["op"] = $op;
  75. }
  76. public function getVv()
  77. {
  78. return $this->vv;
  79. }
  80. public function setVv($vv)
  81. {
  82. $this->vv = $vv;
  83. $this->apiParam["vv"] = $vv;
  84. }
  85. public function getSt()
  86. {
  87. return $this->st;
  88. }
  89. public function setSt($st)
  90. {
  91. $this->st = $st;
  92. $this->apiParam["st"] = $st;
  93. }
  94. public function getHx()
  95. {
  96. return $this->hx;
  97. }
  98. public function setHx($hx)
  99. {
  100. $this->hx = $hx;
  101. $this->apiParam["hx"] = $hx;
  102. }
  103. public function getHwq()
  104. {
  105. return $this->hwq;
  106. }
  107. public function setHwq($hwq)
  108. {
  109. $this->hwq = $hwq;
  110. $this->apiParam["hwq"] = $hwq;
  111. }
  112. }