You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
56 lines
1.1 KiB
<?php
|
|
namespace App\TaskWorker;
|
|
use AlibabaCloud\Client\Request\RpcRequest;
|
|
class PubRequest extends RpcRequest
|
|
{
|
|
function __construct()
|
|
{
|
|
parent::__construct("Iot", "2017-04-20", "Pub");
|
|
$this->setMethod("POST");
|
|
}
|
|
|
|
private $topicFullName;
|
|
|
|
private $qos;
|
|
|
|
private $messageContent;
|
|
|
|
private $productKey;
|
|
|
|
public function getTopicFullName() {
|
|
return $this->topicFullName;
|
|
}
|
|
|
|
public function setTopicFullName($topicFullName) {
|
|
$this->topicFullName = $topicFullName;
|
|
$this->queryParameters["TopicFullName"]=$topicFullName;
|
|
}
|
|
|
|
public function getQos() {
|
|
return $this->qos;
|
|
}
|
|
|
|
public function setQos($qos) {
|
|
$this->qos = $qos;
|
|
$this->queryParameters["Qos"]=$qos;
|
|
}
|
|
|
|
public function getMessageContent() {
|
|
return $this->messageContent;
|
|
}
|
|
|
|
public function setMessageContent($messageContent) {
|
|
$this->messageContent = $messageContent;
|
|
$this->queryParameters["MessageContent"]=$messageContent;
|
|
}
|
|
|
|
public function getProductKey() {
|
|
return $this->productKey;
|
|
}
|
|
|
|
public function setProductKey($productKey) {
|
|
$this->productKey = $productKey;
|
|
$this->queryParameters["ProductKey"]=$productKey;
|
|
}
|
|
|
|
}
|