|
|
|
@ -1,56 +0,0 @@ |
|
|
|
<?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; |
|
|
|
} |
|
|
|
|
|
|
|
} |