OpenimTribelogsGetRequest.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. /**
  3. * TOP API: taobao.openim.tribelogs.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2015.12.24
  7. */
  8. class OpenimTribelogsGetRequest
  9. {
  10. /**
  11. * 查询起始时间,UTC秒数。必须在一个月内。
  12. **/
  13. private $begin;
  14. /**
  15. * 查询条数
  16. **/
  17. private $count;
  18. /**
  19. * 查询结束时间,UTC秒数。必须大于起始时间并小于当前时间
  20. **/
  21. private $end;
  22. /**
  23. * 迭代key
  24. **/
  25. private $next;
  26. /**
  27. * 群号
  28. **/
  29. private $tribeId;
  30. private $apiParas = array();
  31. public function setBegin($begin)
  32. {
  33. $this->begin = $begin;
  34. $this->apiParas["begin"] = $begin;
  35. }
  36. public function getBegin()
  37. {
  38. return $this->begin;
  39. }
  40. public function setCount($count)
  41. {
  42. $this->count = $count;
  43. $this->apiParas["count"] = $count;
  44. }
  45. public function getCount()
  46. {
  47. return $this->count;
  48. }
  49. public function setEnd($end)
  50. {
  51. $this->end = $end;
  52. $this->apiParas["end"] = $end;
  53. }
  54. public function getEnd()
  55. {
  56. return $this->end;
  57. }
  58. public function setNext($next)
  59. {
  60. $this->next = $next;
  61. $this->apiParas["next"] = $next;
  62. }
  63. public function getNext()
  64. {
  65. return $this->next;
  66. }
  67. public function setTribeId($tribeId)
  68. {
  69. $this->tribeId = $tribeId;
  70. $this->apiParas["tribe_id"] = $tribeId;
  71. }
  72. public function getTribeId()
  73. {
  74. return $this->tribeId;
  75. }
  76. public function getApiMethodName()
  77. {
  78. return "taobao.openim.tribelogs.get";
  79. }
  80. public function getApiParas()
  81. {
  82. return $this->apiParas;
  83. }
  84. public function check()
  85. {
  86. RequestCheckUtil::checkNotNull($this->begin,"begin");
  87. RequestCheckUtil::checkNotNull($this->count,"count");
  88. RequestCheckUtil::checkNotNull($this->end,"end");
  89. RequestCheckUtil::checkNotNull($this->tribeId,"tribeId");
  90. }
  91. public function putOtherTextParam($key, $value) {
  92. $this->apiParas[$key] = $value;
  93. $this->$key = $value;
  94. }
  95. }