OpenimChatlogsGetRequest.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. /**
  3. * TOP API: taobao.openim.chatlogs.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2015.06.16
  7. */
  8. class OpenimChatlogsGetRequest
  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 $nextKey;
  26. /**
  27. * 用户1信息
  28. **/
  29. private $user1;
  30. /**
  31. * 用户2信息
  32. **/
  33. private $user2;
  34. private $apiParas = array();
  35. public function setBegin($begin)
  36. {
  37. $this->begin = $begin;
  38. $this->apiParas["begin"] = $begin;
  39. }
  40. public function getBegin()
  41. {
  42. return $this->begin;
  43. }
  44. public function setCount($count)
  45. {
  46. $this->count = $count;
  47. $this->apiParas["count"] = $count;
  48. }
  49. public function getCount()
  50. {
  51. return $this->count;
  52. }
  53. public function setEnd($end)
  54. {
  55. $this->end = $end;
  56. $this->apiParas["end"] = $end;
  57. }
  58. public function getEnd()
  59. {
  60. return $this->end;
  61. }
  62. public function setNextKey($nextKey)
  63. {
  64. $this->nextKey = $nextKey;
  65. $this->apiParas["next_key"] = $nextKey;
  66. }
  67. public function getNextKey()
  68. {
  69. return $this->nextKey;
  70. }
  71. public function setUser1($user1)
  72. {
  73. $this->user1 = $user1;
  74. $this->apiParas["user1"] = $user1;
  75. }
  76. public function getUser1()
  77. {
  78. return $this->user1;
  79. }
  80. public function setUser2($user2)
  81. {
  82. $this->user2 = $user2;
  83. $this->apiParas["user2"] = $user2;
  84. }
  85. public function getUser2()
  86. {
  87. return $this->user2;
  88. }
  89. public function getApiMethodName()
  90. {
  91. return "taobao.openim.chatlogs.get";
  92. }
  93. public function getApiParas()
  94. {
  95. return $this->apiParas;
  96. }
  97. public function check()
  98. {
  99. RequestCheckUtil::checkNotNull($this->begin,"begin");
  100. RequestCheckUtil::checkNotNull($this->count,"count");
  101. RequestCheckUtil::checkNotNull($this->end,"end");
  102. }
  103. public function putOtherTextParam($key, $value) {
  104. $this->apiParas[$key] = $value;
  105. $this->$key = $value;
  106. }
  107. }