1 | <?php |
||
7 | class SendRequest extends AbstractRequest |
||
8 | { |
||
9 | |||
10 | const TYPE_MESSAGE = 'message'; |
||
11 | const TYPE_ACTION = 'action'; |
||
12 | |||
13 | /** |
||
14 | * @var null|array |
||
15 | */ |
||
16 | protected $recipient; |
||
17 | |||
18 | /** |
||
19 | * @var null|string|\Kerox\Messenger\Model\Message |
||
20 | */ |
||
21 | protected $message; |
||
22 | |||
23 | /** |
||
24 | * @var null|string |
||
25 | */ |
||
26 | protected $senderAction; |
||
27 | |||
28 | /** |
||
29 | * @var null|string |
||
30 | */ |
||
31 | protected $notificationType; |
||
32 | |||
33 | /** |
||
34 | * @var null|string |
||
35 | */ |
||
36 | protected $tag; |
||
37 | |||
38 | /** |
||
39 | * Request constructor. |
||
40 | * |
||
41 | * @param string $pageToken |
||
42 | * @param string|\Kerox\Messenger\Model\Message $content |
||
43 | * @param string|null $recipient |
||
44 | * @param string $requestType |
||
45 | * @param string|null $notificationType |
||
46 | * @param string|null $tag |
||
47 | */ |
||
48 | 5 | public function __construct( |
|
68 | |||
69 | /** |
||
70 | * @return array |
||
71 | */ |
||
72 | 5 | protected function buildHeaders(): array |
|
78 | |||
79 | /** |
||
80 | * @return array |
||
81 | */ |
||
82 | 5 | protected function buildBody(): array |
|
94 | |||
95 | /** |
||
96 | * @return array |
||
97 | */ |
||
98 | 5 | protected function buildQuery(): array |
|
102 | } |
||
103 |