content = $content; $this->apiParas["content"] = $content; } public function getContent() { return $this->content; } public function setDelayMillis($delayMillis) { $this->delayMillis = $delayMillis; $this->apiParas["delay_millis"] = $delayMillis; } public function getDelayMillis() { return $this->delayMillis; } public function setExContent($exContent) { $this->exContent = $exContent; $this->apiParas["ex_content"] = $exContent; } public function getExContent() { return $this->exContent; } public function setExpiresMillis($expiresMillis) { $this->expiresMillis = $expiresMillis; $this->apiParas["expires_millis"] = $expiresMillis; } public function getExpiresMillis() { return $this->expiresMillis; } public function setMediaContent($mediaContent) { $this->mediaContent = $mediaContent; $this->apiParas["media_content"] = $mediaContent; } public function getMediaContent() { return $this->mediaContent; } public function setMediaContent2($mediaContent2) { $this->mediaContent2 = $mediaContent2; $this->apiParas["media_content2"] = $mediaContent2; } public function getMediaContent2() { return $this->mediaContent2; } public function setMediaContent3($mediaContent3) { $this->mediaContent3 = $mediaContent3; $this->apiParas["media_content3"] = $mediaContent3; } public function getMediaContent3() { return $this->mediaContent3; } public function setMediaContent4($mediaContent4) { $this->mediaContent4 = $mediaContent4; $this->apiParas["media_content4"] = $mediaContent4; } public function getMediaContent4() { return $this->mediaContent4; } public function setMediaContent5($mediaContent5) { $this->mediaContent5 = $mediaContent5; $this->apiParas["media_content5"] = $mediaContent5; } public function getMediaContent5() { return $this->mediaContent5; } public function setTargetAppkey($targetAppkey) { $this->targetAppkey = $targetAppkey; $this->apiParas["target_appkey"] = $targetAppkey; } public function getTargetAppkey() { return $this->targetAppkey; } public function setTargetGroup($targetGroup) { $this->targetGroup = $targetGroup; $this->apiParas["target_group"] = $targetGroup; } public function getTargetGroup() { return $this->targetGroup; } public function setTopic($topic) { $this->topic = $topic; $this->apiParas["topic"] = $topic; } public function getTopic() { return $this->topic; } public function getApiMethodName() { return "taobao.tmc.message.produce"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->content,"content"); RequestCheckUtil::checkMaxLength($this->content,122880,"content"); RequestCheckUtil::checkMaxLength($this->exContent,500,"exContent"); RequestCheckUtil::checkMaxLength($this->targetAppkey,256,"targetAppkey"); RequestCheckUtil::checkNotNull($this->topic,"topic"); RequestCheckUtil::checkMaxLength($this->topic,256,"topic"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }