OpenimAppChatlogsGetRequest.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?php
  2. /**
  3. * TOP API: taobao.openim.app.chatlogs.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2015.09.25
  7. */
  8. class OpenimAppChatlogsGetRequest
  9. {
  10. /**
  11. * 查询结束时间。UTC时间。精度到秒
  12. **/
  13. private $beg;
  14. /**
  15. * 查询最大条数
  16. **/
  17. private $count;
  18. /**
  19. * 查询结束时间。UTC时间。精度到秒
  20. **/
  21. private $end;
  22. /**
  23. * 迭代key
  24. **/
  25. private $next;
  26. private $apiParas = array();
  27. public function setBeg($beg)
  28. {
  29. $this->beg = $beg;
  30. $this->apiParas["beg"] = $beg;
  31. }
  32. public function getBeg()
  33. {
  34. return $this->beg;
  35. }
  36. public function setCount($count)
  37. {
  38. $this->count = $count;
  39. $this->apiParas["count"] = $count;
  40. }
  41. public function getCount()
  42. {
  43. return $this->count;
  44. }
  45. public function setEnd($end)
  46. {
  47. $this->end = $end;
  48. $this->apiParas["end"] = $end;
  49. }
  50. public function getEnd()
  51. {
  52. return $this->end;
  53. }
  54. public function setNext($next)
  55. {
  56. $this->next = $next;
  57. $this->apiParas["next"] = $next;
  58. }
  59. public function getNext()
  60. {
  61. return $this->next;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "taobao.openim.app.chatlogs.get";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->beg,"beg");
  74. RequestCheckUtil::checkNotNull($this->count,"count");
  75. RequestCheckUtil::checkMaxValue($this->count,1000,"count");
  76. RequestCheckUtil::checkMinValue($this->count,1,"count");
  77. RequestCheckUtil::checkNotNull($this->end,"end");
  78. }
  79. public function putOtherTextParam($key, $value) {
  80. $this->apiParas[$key] = $value;
  81. $this->$key = $value;
  82. }
  83. }