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.
40 lines
774 B
40 lines
774 B
<?php
|
|
namespace AliyunMNS\Requests;
|
|
|
|
use AliyunMNS\Requests\BaseRequest;
|
|
|
|
class UnsubscribeRequest extends BaseRequest
|
|
{
|
|
private $topicName;
|
|
private $subscriptionName;
|
|
|
|
public function __construct($topicName, $subscriptionName)
|
|
{
|
|
parent::__construct('delete', 'topics/' . $topicName . '/subscriptions/' . $subscriptionName);
|
|
$this->topicName = $topicName;
|
|
$this->subscriptionName = $subscriptionName;
|
|
}
|
|
|
|
public function getTopicName()
|
|
{
|
|
return $this->topicName;
|
|
}
|
|
|
|
public function getSubscriptionName()
|
|
{
|
|
return $this->subscriptionName;
|
|
}
|
|
|
|
public function generateBody()
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
public function generateQueryString()
|
|
{
|
|
return NULL;
|
|
}
|
|
}
|
|
|
|
?>
|