OapiCalendarV2AttendeeUpdateRequest.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.calendar.v2.attendee.update request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.07.16
  7. */
  8. class OapiCalendarV2AttendeeUpdateRequest
  9. {
  10. /**
  11. * 开放平台应用对应的AgentId
  12. **/
  13. private $agentid;
  14. /**
  15. * 参与者列表
  16. **/
  17. private $attendees;
  18. /**
  19. * 日历id,目前仅支持传primary,表示修改的是“我的日程”下的日程
  20. **/
  21. private $calendarId;
  22. /**
  23. * 加密后的日程Id
  24. **/
  25. private $eventId;
  26. private $apiParas = array();
  27. public function setAgentid($agentid)
  28. {
  29. $this->agentid = $agentid;
  30. $this->apiParas["agentid"] = $agentid;
  31. }
  32. public function getAgentid()
  33. {
  34. return $this->agentid;
  35. }
  36. public function setAttendees($attendees)
  37. {
  38. $this->attendees = $attendees;
  39. $this->apiParas["attendees"] = $attendees;
  40. }
  41. public function getAttendees()
  42. {
  43. return $this->attendees;
  44. }
  45. public function setCalendarId($calendarId)
  46. {
  47. $this->calendarId = $calendarId;
  48. $this->apiParas["calendar_id"] = $calendarId;
  49. }
  50. public function getCalendarId()
  51. {
  52. return $this->calendarId;
  53. }
  54. public function setEventId($eventId)
  55. {
  56. $this->eventId = $eventId;
  57. $this->apiParas["event_id"] = $eventId;
  58. }
  59. public function getEventId()
  60. {
  61. return $this->eventId;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "dingtalk.oapi.calendar.v2.attendee.update";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->calendarId,"calendarId");
  74. RequestCheckUtil::checkMaxLength($this->calendarId,64,"calendarId");
  75. RequestCheckUtil::checkNotNull($this->eventId,"eventId");
  76. RequestCheckUtil::checkMaxLength($this->eventId,64,"eventId");
  77. }
  78. public function putOtherTextParam($key, $value) {
  79. $this->apiParas[$key] = $value;
  80. $this->$key = $value;
  81. }
  82. }