OapiCustomizeConversationUpdateRequest.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.customize.conversation.update request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.03.18
  7. */
  8. class OapiCustomizeConversationUpdateRequest
  9. {
  10. /**
  11. * 会话id
  12. **/
  13. private $chatId;
  14. /**
  15. * extensionKey
  16. **/
  17. private $extensionKey;
  18. /**
  19. * extensionValue
  20. **/
  21. private $extensionValue;
  22. /**
  23. * 员工账号
  24. **/
  25. private $userid;
  26. private $apiParas = array();
  27. public function setChatId($chatId)
  28. {
  29. $this->chatId = $chatId;
  30. $this->apiParas["chat_id"] = $chatId;
  31. }
  32. public function getChatId()
  33. {
  34. return $this->chatId;
  35. }
  36. public function setExtensionKey($extensionKey)
  37. {
  38. $this->extensionKey = $extensionKey;
  39. $this->apiParas["extension_key"] = $extensionKey;
  40. }
  41. public function getExtensionKey()
  42. {
  43. return $this->extensionKey;
  44. }
  45. public function setExtensionValue($extensionValue)
  46. {
  47. $this->extensionValue = $extensionValue;
  48. $this->apiParas["extension_value"] = $extensionValue;
  49. }
  50. public function getExtensionValue()
  51. {
  52. return $this->extensionValue;
  53. }
  54. public function setUserid($userid)
  55. {
  56. $this->userid = $userid;
  57. $this->apiParas["userid"] = $userid;
  58. }
  59. public function getUserid()
  60. {
  61. return $this->userid;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "dingtalk.oapi.customize.conversation.update";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->chatId,"chatId");
  74. RequestCheckUtil::checkNotNull($this->extensionKey,"extensionKey");
  75. RequestCheckUtil::checkNotNull($this->extensionValue,"extensionValue");
  76. RequestCheckUtil::checkNotNull($this->userid,"userid");
  77. }
  78. public function putOtherTextParam($key, $value) {
  79. $this->apiParas[$key] = $value;
  80. $this->$key = $value;
  81. }
  82. }