1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?php
- namespace AliyunMNS\Requests;
- use AliyunMNS\Requests\BaseRequest;
- class ListSubscriptionRequest extends BaseRequest
- {
- private $topicName;
- private $retNum;
- private $prefix;
- private $marker;
- public function __construct(
- $topicName,
- $retNum = NULL,
- $prefix = NULL,
- $marker = NULL)
- {
- parent::__construct('get', 'topics/' . $topicName . '/subscriptions');
- $this->topicName = $topicName;
- $this->setRetNum($retNum);
- $this->setPrefix($prefix);
- $this->setMarker($marker);
- }
-
- public function getTopicName()
- {
- return $this->topicName;
- }
- 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;
- }
- }
- ?>
|