1 | <?php |
||
9 | class Thread extends AbstractApi |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * ThreadSettings constructor. |
||
14 | * |
||
15 | * @param string $pageToken |
||
16 | * @param \GuzzleHttp\Client $client |
||
17 | */ |
||
18 | public function __construct($pageToken, Client $client) |
||
22 | |||
23 | /** |
||
24 | * @param \Kerox\Messenger\Model\ThreadSettings $threadSettings |
||
25 | * @return \Kerox\Messenger\Response\ThreadResponse |
||
26 | */ |
||
27 | public function add(ThreadSettings $threadSettings): ThreadResponse |
||
34 | |||
35 | /** |
||
36 | * @param string $type |
||
37 | * @param string $state |
||
38 | * @return void |
||
39 | */ |
||
40 | public function delete(string $type, string $state = null) |
||
49 | |||
50 | /** |
||
51 | * @param string $threadSettingsType |
||
52 | * @throws \InvalidArgumentException |
||
53 | */ |
||
54 | private function isValidThreadSettingType(string $threadSettingsType) |
||
61 | |||
62 | /** |
||
63 | * @return array |
||
64 | */ |
||
65 | private function getAllowedThreadSettingsType(): array |
||
75 | } |
||
76 |