OapiImpaasConversationModifymemberRequest.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.impaas.conversation.modifymember request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.07.03
  7. */
  8. class OapiImpaasConversationModifymemberRequest
  9. {
  10. /**
  11. * 渠道
  12. **/
  13. private $channel;
  14. /**
  15. * 群ID
  16. **/
  17. private $chatid;
  18. /**
  19. * 会员ID列表
  20. **/
  21. private $memberidList;
  22. /**
  23. * 1 添加 2 删除
  24. **/
  25. private $type;
  26. private $apiParas = array();
  27. public function setChannel($channel)
  28. {
  29. $this->channel = $channel;
  30. $this->apiParas["channel"] = $channel;
  31. }
  32. public function getChannel()
  33. {
  34. return $this->channel;
  35. }
  36. public function setChatid($chatid)
  37. {
  38. $this->chatid = $chatid;
  39. $this->apiParas["chatid"] = $chatid;
  40. }
  41. public function getChatid()
  42. {
  43. return $this->chatid;
  44. }
  45. public function setMemberidList($memberidList)
  46. {
  47. $this->memberidList = $memberidList;
  48. $this->apiParas["memberid_list"] = $memberidList;
  49. }
  50. public function getMemberidList()
  51. {
  52. return $this->memberidList;
  53. }
  54. public function setType($type)
  55. {
  56. $this->type = $type;
  57. $this->apiParas["type"] = $type;
  58. }
  59. public function getType()
  60. {
  61. return $this->type;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "dingtalk.oapi.impaas.conversation.modifymember";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->channel,"channel");
  74. RequestCheckUtil::checkNotNull($this->chatid,"chatid");
  75. RequestCheckUtil::checkNotNull($this->memberidList,"memberidList");
  76. RequestCheckUtil::checkMaxListSize($this->memberidList,500,"memberidList");
  77. RequestCheckUtil::checkNotNull($this->type,"type");
  78. }
  79. public function putOtherTextParam($key, $value) {
  80. $this->apiParas[$key] = $value;
  81. $this->$key = $value;
  82. }
  83. }