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.

55 lines
1.1 KiB

  1. <?php
  2. namespace App\TaskWorker;
  3. use AlibabaCloud\Client\Request\RpcRequest;
  4. class PubRequest extends RpcRequest
  5. {
  6. function __construct()
  7. {
  8. parent::__construct("Iot", "2017-04-20", "Pub");
  9. $this->setMethod("POST");
  10. }
  11. private $topicFullName;
  12. private $qos;
  13. private $messageContent;
  14. private $productKey;
  15. public function getTopicFullName() {
  16. return $this->topicFullName;
  17. }
  18. public function setTopicFullName($topicFullName) {
  19. $this->topicFullName = $topicFullName;
  20. $this->queryParameters["TopicFullName"]=$topicFullName;
  21. }
  22. public function getQos() {
  23. return $this->qos;
  24. }
  25. public function setQos($qos) {
  26. $this->qos = $qos;
  27. $this->queryParameters["Qos"]=$qos;
  28. }
  29. public function getMessageContent() {
  30. return $this->messageContent;
  31. }
  32. public function setMessageContent($messageContent) {
  33. $this->messageContent = $messageContent;
  34. $this->queryParameters["MessageContent"]=$messageContent;
  35. }
  36. public function getProductKey() {
  37. return $this->productKey;
  38. }
  39. public function setProductKey($productKey) {
  40. $this->productKey = $productKey;
  41. $this->queryParameters["ProductKey"]=$productKey;
  42. }
  43. }