OapiImChatServicegroupUpgradeRequest.php 870 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.im.chat.servicegroup.upgrade request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.07.17
  7. */
  8. class OapiImChatServicegroupUpgradeRequest
  9. {
  10. /**
  11. * 开放的chatId
  12. **/
  13. private $chatId;
  14. private $apiParas = array();
  15. public function setChatId($chatId)
  16. {
  17. $this->chatId = $chatId;
  18. $this->apiParas["chat_id"] = $chatId;
  19. }
  20. public function getChatId()
  21. {
  22. return $this->chatId;
  23. }
  24. public function getApiMethodName()
  25. {
  26. return "dingtalk.oapi.im.chat.servicegroup.upgrade";
  27. }
  28. public function getApiParas()
  29. {
  30. return $this->apiParas;
  31. }
  32. public function check()
  33. {
  34. RequestCheckUtil::checkNotNull($this->chatId,"chatId");
  35. RequestCheckUtil::checkMaxLength($this->chatId,128,"chatId");
  36. }
  37. public function putOtherTextParam($key, $value) {
  38. $this->apiParas[$key] = $value;
  39. $this->$key = $value;
  40. }
  41. }