CorpChatbotUpdateorgbotRequest.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.corp.chatbot.updateorgbot request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018.07.25
  7. */
  8. class CorpChatbotUpdateorgbotRequest
  9. {
  10. /**
  11. * 创建时返回的机器人Id
  12. **/
  13. private $chatbotId;
  14. /**
  15. * 头像的mediaId
  16. **/
  17. private $icon;
  18. /**
  19. * 机器人名字
  20. **/
  21. private $name;
  22. private $apiParas = array();
  23. public function setChatbotId($chatbotId)
  24. {
  25. $this->chatbotId = $chatbotId;
  26. $this->apiParas["chatbot_id"] = $chatbotId;
  27. }
  28. public function getChatbotId()
  29. {
  30. return $this->chatbotId;
  31. }
  32. public function setIcon($icon)
  33. {
  34. $this->icon = $icon;
  35. $this->apiParas["icon"] = $icon;
  36. }
  37. public function getIcon()
  38. {
  39. return $this->icon;
  40. }
  41. public function setName($name)
  42. {
  43. $this->name = $name;
  44. $this->apiParas["name"] = $name;
  45. }
  46. public function getName()
  47. {
  48. return $this->name;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.corp.chatbot.updateorgbot";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->chatbotId,"chatbotId");
  61. RequestCheckUtil::checkNotNull($this->icon,"icon");
  62. RequestCheckUtil::checkNotNull($this->name,"name");
  63. }
  64. public function putOtherTextParam($key, $value) {
  65. $this->apiParas[$key] = $value;
  66. $this->$key = $value;
  67. }
  68. }