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