Commit 22e3eee9 authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлен метод проверяющий нажание кнопки "Отписаться"

parent a3716eed
......@@ -115,6 +115,17 @@ class UnisenderAPI {
return $this->statuses;
}
/**
* @return bool
*/
public function isUnsubscribed(){
if (array_key_exists('result', $this->statuses) && array_key_exists('status', $this->statuses['result'])) {
if ($this->statuses['result']['status']==ConditionBase::MESSAGE_UNSUBSCRIBED)
return true;
}
return false;
}
/**
* @return bool
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment