atMobiles = $atMobiles; $this->apiParas["at_mobiles"] = $atMobiles; } public function getAtMobiles() { return $this->atMobiles; } public function setIsAtAll($isAtAll) { $this->isAtAll = $isAtAll; $this->apiParas["is_at_all"] = $isAtAll; } public function getIsAtAll() { return $this->isAtAll; } public function setMsgMediaIdParamMap($msgMediaIdParamMap) { $this->msgMediaIdParamMap = $msgMediaIdParamMap; $this->apiParas["msg_media_id_param_map"] = $msgMediaIdParamMap; } public function getMsgMediaIdParamMap() { return $this->msgMediaIdParamMap; } public function setMsgParamMap($msgParamMap) { $this->msgParamMap = $msgParamMap; $this->apiParas["msg_param_map"] = $msgParamMap; } public function getMsgParamMap() { return $this->msgParamMap; } public function setMsgTemplateId($msgTemplateId) { $this->msgTemplateId = $msgTemplateId; $this->apiParas["msg_template_id"] = $msgTemplateId; } public function getMsgTemplateId() { return $this->msgTemplateId; } public function setReceiverMobiles($receiverMobiles) { $this->receiverMobiles = $receiverMobiles; $this->apiParas["receiver_mobiles"] = $receiverMobiles; } public function getReceiverMobiles() { return $this->receiverMobiles; } public function setReceiverUnionIds($receiverUnionIds) { $this->receiverUnionIds = $receiverUnionIds; $this->apiParas["receiver_union_ids"] = $receiverUnionIds; } public function getReceiverUnionIds() { return $this->receiverUnionIds; } public function setReceiverUserIds($receiverUserIds) { $this->receiverUserIds = $receiverUserIds; $this->apiParas["receiver_user_ids"] = $receiverUserIds; } public function getReceiverUserIds() { return $this->receiverUserIds; } public function setRobotCode($robotCode) { $this->robotCode = $robotCode; $this->apiParas["robot_code"] = $robotCode; } public function getRobotCode() { return $this->robotCode; } public function setTargetOpenConversationId($targetOpenConversationId) { $this->targetOpenConversationId = $targetOpenConversationId; $this->apiParas["target_open_conversation_id"] = $targetOpenConversationId; } public function getTargetOpenConversationId() { return $this->targetOpenConversationId; } public function getApiMethodName() { return "dingtalk.oapi.im.chat.scencegroup.message.send"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkMaxListSize($this->atMobiles,999,"atMobiles"); RequestCheckUtil::checkNotNull($this->msgTemplateId,"msgTemplateId"); RequestCheckUtil::checkMaxListSize($this->receiverMobiles,999,"receiverMobiles"); RequestCheckUtil::checkMaxListSize($this->receiverUnionIds,999,"receiverUnionIds"); RequestCheckUtil::checkMaxListSize($this->receiverUserIds,999,"receiverUserIds"); RequestCheckUtil::checkNotNull($this->robotCode,"robotCode"); RequestCheckUtil::checkNotNull($this->targetOpenConversationId,"targetOpenConversationId"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }