123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.message.send_to_conversation request
- *
- * @author auto create
- * @since 1.0, 2019.12.16
- */
- class OapiMessageSendToConversationRequest
- {
- /**
- * ActionCard消息
- **/
- private $actionCard;
-
- /**
- * 群消息或者个人聊天会话Id,(通过JSAPI之pickConversation接口唤起联系人界面选择之后即可拿到会话ID,之后您可以使用获取到的cid调用此接口)
- **/
- private $cid;
-
- /**
- * file消息
- **/
- private $file;
-
- /**
- * image消息
- **/
- private $image;
-
- /**
- * link消息
- **/
- private $link;
-
- /**
- * markdown消息
- **/
- private $markdown;
-
- /**
- * 消息内容
- **/
- private $msg;
-
- /**
- * 消息类型
- **/
- private $msgtype;
-
- /**
- * OA消息
- **/
- private $oa;
-
- /**
- * 消息发送者员工ID
- **/
- private $sender;
-
- /**
- * text消息
- **/
- private $text;
-
- /**
- * voice消息
- **/
- private $voice;
-
- private $apiParas = array();
-
- public function setActionCard($actionCard)
- {
- $this->actionCard = $actionCard;
- $this->apiParas["action_card"] = $actionCard;
- }
- public function getActionCard()
- {
- return $this->actionCard;
- }
- public function setCid($cid)
- {
- $this->cid = $cid;
- $this->apiParas["cid"] = $cid;
- }
- public function getCid()
- {
- return $this->cid;
- }
- public function setFile($file)
- {
- $this->file = $file;
- $this->apiParas["file"] = $file;
- }
- public function getFile()
- {
- return $this->file;
- }
- public function setImage($image)
- {
- $this->image = $image;
- $this->apiParas["image"] = $image;
- }
- public function getImage()
- {
- return $this->image;
- }
- public function setLink($link)
- {
- $this->link = $link;
- $this->apiParas["link"] = $link;
- }
- public function getLink()
- {
- return $this->link;
- }
- public function setMarkdown($markdown)
- {
- $this->markdown = $markdown;
- $this->apiParas["markdown"] = $markdown;
- }
- public function getMarkdown()
- {
- return $this->markdown;
- }
- public function setMsg($msg)
- {
- $this->msg = $msg;
- $this->apiParas["msg"] = $msg;
- }
- public function getMsg()
- {
- return $this->msg;
- }
- public function setMsgtype($msgtype)
- {
- $this->msgtype = $msgtype;
- $this->apiParas["msgtype"] = $msgtype;
- }
- public function getMsgtype()
- {
- return $this->msgtype;
- }
- public function setOa($oa)
- {
- $this->oa = $oa;
- $this->apiParas["oa"] = $oa;
- }
- public function getOa()
- {
- return $this->oa;
- }
- public function setSender($sender)
- {
- $this->sender = $sender;
- $this->apiParas["sender"] = $sender;
- }
- public function getSender()
- {
- return $this->sender;
- }
- public function setText($text)
- {
- $this->text = $text;
- $this->apiParas["text"] = $text;
- }
- public function getText()
- {
- return $this->text;
- }
- public function setVoice($voice)
- {
- $this->voice = $voice;
- $this->apiParas["voice"] = $voice;
- }
- public function getVoice()
- {
- return $this->voice;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.message.send_to_conversation";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|