OpenimUserserviceGetRequest.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * TOP API: taobao.openim.userservice.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2016.03.07
  7. */
  8. class OpenimUserserviceGetRequest
  9. {
  10. /**
  11. * 某一天
  12. **/
  13. private $date;
  14. /**
  15. * 当前页
  16. **/
  17. private $pageNo;
  18. /**
  19. * 页面记录数
  20. **/
  21. private $pageSize;
  22. private $apiParas = array();
  23. public function setDate($date)
  24. {
  25. $this->date = $date;
  26. $this->apiParas["date"] = $date;
  27. }
  28. public function getDate()
  29. {
  30. return $this->date;
  31. }
  32. public function setPageNo($pageNo)
  33. {
  34. $this->pageNo = $pageNo;
  35. $this->apiParas["page_no"] = $pageNo;
  36. }
  37. public function getPageNo()
  38. {
  39. return $this->pageNo;
  40. }
  41. public function setPageSize($pageSize)
  42. {
  43. $this->pageSize = $pageSize;
  44. $this->apiParas["page_size"] = $pageSize;
  45. }
  46. public function getPageSize()
  47. {
  48. return $this->pageSize;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "taobao.openim.userservice.get";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->date,"date");
  61. }
  62. public function putOtherTextParam($key, $value) {
  63. $this->apiParas[$key] = $value;
  64. $this->$key = $value;
  65. }
  66. }