CorpChatbotUpdatebychatbotidRequest.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.corp.chatbot.updatebychatbotid request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.07.03
  7. */
  8. class CorpChatbotUpdatebychatbotidRequest
  9. {
  10. /**
  11. * 机器人简单描述
  12. **/
  13. private $breif;
  14. /**
  15. * 机器人id(钉钉分配)
  16. **/
  17. private $chatbotId;
  18. /**
  19. * 机器人详细描述
  20. **/
  21. private $description;
  22. /**
  23. * 机器人头像
  24. **/
  25. private $icon;
  26. /**
  27. * 机器人名字
  28. **/
  29. private $name;
  30. /**
  31. * 机器人预览图
  32. **/
  33. private $previewMediaId;
  34. /**
  35. * 更新名字或头像时是否更新群里已添加机器人的名字或头像。 * 0-不更新群里机器人名字或头像 * 1-更新群里机器人名字或头像
  36. **/
  37. private $updateType;
  38. private $apiParas = array();
  39. public function setBreif($breif)
  40. {
  41. $this->breif = $breif;
  42. $this->apiParas["breif"] = $breif;
  43. }
  44. public function getBreif()
  45. {
  46. return $this->breif;
  47. }
  48. public function setChatbotId($chatbotId)
  49. {
  50. $this->chatbotId = $chatbotId;
  51. $this->apiParas["chatbot_id"] = $chatbotId;
  52. }
  53. public function getChatbotId()
  54. {
  55. return $this->chatbotId;
  56. }
  57. public function setDescription($description)
  58. {
  59. $this->description = $description;
  60. $this->apiParas["description"] = $description;
  61. }
  62. public function getDescription()
  63. {
  64. return $this->description;
  65. }
  66. public function setIcon($icon)
  67. {
  68. $this->icon = $icon;
  69. $this->apiParas["icon"] = $icon;
  70. }
  71. public function getIcon()
  72. {
  73. return $this->icon;
  74. }
  75. public function setName($name)
  76. {
  77. $this->name = $name;
  78. $this->apiParas["name"] = $name;
  79. }
  80. public function getName()
  81. {
  82. return $this->name;
  83. }
  84. public function setPreviewMediaId($previewMediaId)
  85. {
  86. $this->previewMediaId = $previewMediaId;
  87. $this->apiParas["preview_media_id"] = $previewMediaId;
  88. }
  89. public function getPreviewMediaId()
  90. {
  91. return $this->previewMediaId;
  92. }
  93. public function setUpdateType($updateType)
  94. {
  95. $this->updateType = $updateType;
  96. $this->apiParas["update_type"] = $updateType;
  97. }
  98. public function getUpdateType()
  99. {
  100. return $this->updateType;
  101. }
  102. public function getApiMethodName()
  103. {
  104. return "dingtalk.corp.chatbot.updatebychatbotid";
  105. }
  106. public function getApiParas()
  107. {
  108. return $this->apiParas;
  109. }
  110. public function check()
  111. {
  112. RequestCheckUtil::checkNotNull($this->updateType,"updateType");
  113. }
  114. public function putOtherTextParam($key, $value) {
  115. $this->apiParas[$key] = $value;
  116. $this->$key = $value;
  117. }
  118. }