| 1 | <?php |
||
| 7 | class Conversations extends Provider |
||
| 8 | { |
||
| 9 | protected $loginRequired = ['last', 'sendMessage']; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Send message to a user |
||
| 13 | * |
||
| 14 | * @param $userId |
||
| 15 | * @param $text |
||
| 16 | * |
||
| 17 | * @return bool |
||
| 18 | */ |
||
| 19 | public function sendMessage($userId, $text) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get last user conversations |
||
| 32 | * |
||
| 33 | * @return array|bool |
||
| 34 | */ |
||
| 35 | public function last() |
||
| 44 | } |
||
| 45 |