OapiConferenceParticipantDeleteRequest.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.conference.participant.delete request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.07.03
  7. */
  8. class OapiConferenceParticipantDeleteRequest
  9. {
  10. /**
  11. * 会务id
  12. **/
  13. private $conferenceId;
  14. /**
  15. * 参会人员列表
  16. **/
  17. private $participantUseridList;
  18. /**
  19. * 操作用户id
  20. **/
  21. private $userid;
  22. private $apiParas = array();
  23. public function setConferenceId($conferenceId)
  24. {
  25. $this->conferenceId = $conferenceId;
  26. $this->apiParas["conference_id"] = $conferenceId;
  27. }
  28. public function getConferenceId()
  29. {
  30. return $this->conferenceId;
  31. }
  32. public function setParticipantUseridList($participantUseridList)
  33. {
  34. $this->participantUseridList = $participantUseridList;
  35. $this->apiParas["participant_userid_list"] = $participantUseridList;
  36. }
  37. public function getParticipantUseridList()
  38. {
  39. return $this->participantUseridList;
  40. }
  41. public function setUserid($userid)
  42. {
  43. $this->userid = $userid;
  44. $this->apiParas["userid"] = $userid;
  45. }
  46. public function getUserid()
  47. {
  48. return $this->userid;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.oapi.conference.participant.delete";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->conferenceId,"conferenceId");
  61. RequestCheckUtil::checkNotNull($this->participantUseridList,"participantUseridList");
  62. RequestCheckUtil::checkMaxListSize($this->participantUseridList,1000,"participantUseridList");
  63. RequestCheckUtil::checkNotNull($this->userid,"userid");
  64. }
  65. public function putOtherTextParam($key, $value) {
  66. $this->apiParas[$key] = $value;
  67. $this->$key = $value;
  68. }
  69. }