OpenimTribelogsImportRequest.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * TOP API: taobao.openim.tribelogs.import request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2015.12.31
  7. */
  8. class OpenimTribelogsImportRequest
  9. {
  10. /**
  11. * 消息列表
  12. **/
  13. private $messages;
  14. /**
  15. * 群号。必须为已存在的群,且群主属于本app
  16. **/
  17. private $tribeId;
  18. private $apiParas = array();
  19. public function setMessages($messages)
  20. {
  21. $this->messages = $messages;
  22. $this->apiParas["messages"] = $messages;
  23. }
  24. public function getMessages()
  25. {
  26. return $this->messages;
  27. }
  28. public function setTribeId($tribeId)
  29. {
  30. $this->tribeId = $tribeId;
  31. $this->apiParas["tribe_id"] = $tribeId;
  32. }
  33. public function getTribeId()
  34. {
  35. return $this->tribeId;
  36. }
  37. public function getApiMethodName()
  38. {
  39. return "taobao.openim.tribelogs.import";
  40. }
  41. public function getApiParas()
  42. {
  43. return $this->apiParas;
  44. }
  45. public function check()
  46. {
  47. RequestCheckUtil::checkNotNull($this->tribeId,"tribeId");
  48. }
  49. public function putOtherTextParam($key, $value) {
  50. $this->apiParas[$key] = $value;
  51. $this->$key = $value;
  52. }
  53. }