123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.planetom.feeds.create request
- *
- * @author auto create
- * @since 1.0, 2021.03.26
- */
- class OapiPlanetomFeedsCreateRequest
- {
- /**
- * 主播在组织内的id(staffId)
- **/
- private $anchorId;
-
- /**
- * 约定开播时间戳(未来时间)
- **/
- private $appointBeginTime;
-
- /**
- * 封面url
- **/
- private $coverUrl;
-
- /**
- * 课程类型
- **/
- private $feedType;
-
- /**
- * 1 chatId / 2 openConversationId,不传默认为OpenConversationId
- **/
- private $groupIdType;
-
- /**
- * 绑定群列表,如果不传,默认为公开直播
- **/
- private $groupIds;
-
- /**
- * 简介
- **/
- private $introduction;
-
- /**
- * 开放平台中应用的appId
- **/
- private $openAppId;
-
- /**
- * 图片简介url
- **/
- private $picIntroductionUrl;
-
- /**
- * 预告片视频
- **/
- private $preVideoUrl;
-
- /**
- * 课程标题
- **/
- private $title;
-
- private $apiParas = array();
-
- public function setAnchorId($anchorId)
- {
- $this->anchorId = $anchorId;
- $this->apiParas["anchor_id"] = $anchorId;
- }
- public function getAnchorId()
- {
- return $this->anchorId;
- }
- public function setAppointBeginTime($appointBeginTime)
- {
- $this->appointBeginTime = $appointBeginTime;
- $this->apiParas["appoint_begin_time"] = $appointBeginTime;
- }
- public function getAppointBeginTime()
- {
- return $this->appointBeginTime;
- }
- public function setCoverUrl($coverUrl)
- {
- $this->coverUrl = $coverUrl;
- $this->apiParas["cover_url"] = $coverUrl;
- }
- public function getCoverUrl()
- {
- return $this->coverUrl;
- }
- public function setFeedType($feedType)
- {
- $this->feedType = $feedType;
- $this->apiParas["feed_type"] = $feedType;
- }
- public function getFeedType()
- {
- return $this->feedType;
- }
- public function setGroupIdType($groupIdType)
- {
- $this->groupIdType = $groupIdType;
- $this->apiParas["group_id_type"] = $groupIdType;
- }
- public function getGroupIdType()
- {
- return $this->groupIdType;
- }
- public function setGroupIds($groupIds)
- {
- $this->groupIds = $groupIds;
- $this->apiParas["group_ids"] = $groupIds;
- }
- public function getGroupIds()
- {
- return $this->groupIds;
- }
- public function setIntroduction($introduction)
- {
- $this->introduction = $introduction;
- $this->apiParas["introduction"] = $introduction;
- }
- public function getIntroduction()
- {
- return $this->introduction;
- }
- public function setOpenAppId($openAppId)
- {
- $this->openAppId = $openAppId;
- $this->apiParas["open_app_id"] = $openAppId;
- }
- public function getOpenAppId()
- {
- return $this->openAppId;
- }
- public function setPicIntroductionUrl($picIntroductionUrl)
- {
- $this->picIntroductionUrl = $picIntroductionUrl;
- $this->apiParas["pic_introduction_url"] = $picIntroductionUrl;
- }
- public function getPicIntroductionUrl()
- {
- return $this->picIntroductionUrl;
- }
- public function setPreVideoUrl($preVideoUrl)
- {
- $this->preVideoUrl = $preVideoUrl;
- $this->apiParas["pre_video_url"] = $preVideoUrl;
- }
- public function getPreVideoUrl()
- {
- return $this->preVideoUrl;
- }
- public function setTitle($title)
- {
- $this->title = $title;
- $this->apiParas["title"] = $title;
- }
- public function getTitle()
- {
- return $this->title;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.planetom.feeds.create";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->anchorId,"anchorId");
- RequestCheckUtil::checkNotNull($this->appointBeginTime,"appointBeginTime");
- RequestCheckUtil::checkNotNull($this->feedType,"feedType");
- RequestCheckUtil::checkMaxListSize($this->groupIds,999,"groupIds");
- RequestCheckUtil::checkNotNull($this->openAppId,"openAppId");
- RequestCheckUtil::checkNotNull($this->title,"title");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|