123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?php
- namespace AliyunMNS\Requests;
- use AliyunMNS\Requests\BaseRequest;
- class ListQueueRequest extends BaseRequest
- {
- private $retNum;
- private $prefix;
- private $marker;
- public function __construct($retNum = NULL, $prefix = NULL, $marker = NULL)
- {
- parent::__construct('get', 'queues');
- $this->setRetNum($retNum);
- $this->setPrefix($prefix);
- $this->setMarker($marker);
- }
- public function getRetNum()
- {
- return $this->retNum;
- }
- public function setRetNum($retNum)
- {
- $this->retNum = $retNum;
- if ($retNum != NULL)
- {
- $this->setHeader("x-mns-ret-number", $retNum);
- }
- else
- {
- $this->removeHeader("x-mns-ret-number");
- }
- }
- public function getPrefix()
- {
- return $this->prefix;
- }
- public function setPrefix($prefix)
- {
- $this->prefis = $prefix;
- if ($prefix != NULL)
- {
- $this->setHeader("x-mns-prefix", $prefix);
- }
- else
- {
- $this->removeHeader("x-mns-prefix");
- }
- }
- public function getMarker()
- {
- return $this->marker;
- }
- public function setMarker($marker)
- {
- $this->marker = $marker;
- if ($marker != NULL)
- {
- $this->setHeader("x-mns-marker", $marker);
- }
- else
- {
- $this->removeHeader("x-mns-marker");
- }
- }
- public function generateBody()
- {
- return NULL;
- }
- public function generateQueryString()
- {
- return NULL;
- }
- }
- ?>
|