| 1 | <?php |
||
| 7 | class MessageReadEvent extends CallbackEvent |
||
| 8 | { |
||
| 9 | const NAME = 'message_read_event'; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var int |
||
| 13 | */ |
||
| 14 | private $timestamp; |
||
| 15 | /** |
||
| 16 | * @var Read |
||
| 17 | */ |
||
| 18 | private $read; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $senderId |
||
| 22 | * @param string $recipientId |
||
| 23 | * @param int $timestamp |
||
| 24 | * @param Read $read |
||
| 25 | */ |
||
| 26 | 7 | public function __construct($senderId, $recipientId, $timestamp, Read $read) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return Read |
||
| 35 | */ |
||
| 36 | 1 | public function getRead() |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return int |
||
| 43 | */ |
||
| 44 | 1 | public function getTimestamp() |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 1 | public function getName() |
|
| 56 | } |
||
| 57 |