OapiImChatScencegroupMessageQueryRequest.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.im.chat.scencegroup.message.query request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2022.06.27
  7. */
  8. class OapiImChatScencegroupMessageQueryRequest
  9. {
  10. /**
  11. * 群标识
  12. **/
  13. private $openConversationId;
  14. /**
  15. * 消息标识
  16. **/
  17. private $openMsgId;
  18. /**
  19. * 消息发送人的unionId(跟userId二选一)
  20. **/
  21. private $senderUnionId;
  22. /**
  23. * 消息发送人的userId(跟unionId二选一)
  24. **/
  25. private $senderUserid;
  26. private $apiParas = array();
  27. public function setOpenConversationId($openConversationId)
  28. {
  29. $this->openConversationId = $openConversationId;
  30. $this->apiParas["open_conversation_id"] = $openConversationId;
  31. }
  32. public function getOpenConversationId()
  33. {
  34. return $this->openConversationId;
  35. }
  36. public function setOpenMsgId($openMsgId)
  37. {
  38. $this->openMsgId = $openMsgId;
  39. $this->apiParas["open_msg_id"] = $openMsgId;
  40. }
  41. public function getOpenMsgId()
  42. {
  43. return $this->openMsgId;
  44. }
  45. public function setSenderUnionId($senderUnionId)
  46. {
  47. $this->senderUnionId = $senderUnionId;
  48. $this->apiParas["sender_union_id"] = $senderUnionId;
  49. }
  50. public function getSenderUnionId()
  51. {
  52. return $this->senderUnionId;
  53. }
  54. public function setSenderUserid($senderUserid)
  55. {
  56. $this->senderUserid = $senderUserid;
  57. $this->apiParas["sender_userid"] = $senderUserid;
  58. }
  59. public function getSenderUserid()
  60. {
  61. return $this->senderUserid;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "dingtalk.oapi.im.chat.scencegroup.message.query";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->openConversationId,"openConversationId");
  74. RequestCheckUtil::checkNotNull($this->openMsgId,"openMsgId");
  75. }
  76. public function putOtherTextParam($key, $value) {
  77. $this->apiParas[$key] = $value;
  78. $this->$key = $value;
  79. }
  80. }