123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.calendar.v2.attendee.update request
- *
- * @author auto create
- * @since 1.0, 2020.07.16
- */
- class OapiCalendarV2AttendeeUpdateRequest
- {
- /**
- * 开放平台应用对应的AgentId
- **/
- private $agentid;
-
- /**
- * 参与者列表
- **/
- private $attendees;
-
- /**
- * 日历id,目前仅支持传primary,表示修改的是“我的日程”下的日程
- **/
- private $calendarId;
-
- /**
- * 加密后的日程Id
- **/
- private $eventId;
-
- private $apiParas = array();
-
- public function setAgentid($agentid)
- {
- $this->agentid = $agentid;
- $this->apiParas["agentid"] = $agentid;
- }
- public function getAgentid()
- {
- return $this->agentid;
- }
- public function setAttendees($attendees)
- {
- $this->attendees = $attendees;
- $this->apiParas["attendees"] = $attendees;
- }
- public function getAttendees()
- {
- return $this->attendees;
- }
- public function setCalendarId($calendarId)
- {
- $this->calendarId = $calendarId;
- $this->apiParas["calendar_id"] = $calendarId;
- }
- public function getCalendarId()
- {
- return $this->calendarId;
- }
- public function setEventId($eventId)
- {
- $this->eventId = $eventId;
- $this->apiParas["event_id"] = $eventId;
- }
- public function getEventId()
- {
- return $this->eventId;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.calendar.v2.attendee.update";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->calendarId,"calendarId");
- RequestCheckUtil::checkMaxLength($this->calendarId,64,"calendarId");
- RequestCheckUtil::checkNotNull($this->eventId,"eventId");
- RequestCheckUtil::checkMaxLength($this->eventId,64,"eventId");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|