1 | <?php |
||
10 | class CapabilityResult extends Result { |
||
11 | /** |
||
12 | * @var string[] |
||
13 | */ |
||
14 | private $capabilities; |
||
15 | |||
16 | /** |
||
17 | * @param string $response |
||
18 | */ |
||
19 | protected function processResponse($response) { |
||
23 | |||
24 | /** |
||
25 | * @return string[] |
||
26 | */ |
||
27 | public function getCapabilities() { |
||
30 | |||
31 | /** |
||
32 | * the threema id can receive text |
||
33 | * @return bool |
||
34 | */ |
||
35 | public function canText() { |
||
38 | |||
39 | /** |
||
40 | * the threema id can receive images |
||
41 | * @return bool |
||
42 | */ |
||
43 | public function canImage() { |
||
46 | |||
47 | /** |
||
48 | * the threema id can receive videos |
||
49 | * @return bool |
||
50 | */ |
||
51 | public function canVideo() { |
||
54 | |||
55 | /** |
||
56 | * the threema id can receive files |
||
57 | * @return bool |
||
58 | */ |
||
59 | public function canAudio() { |
||
62 | |||
63 | /** |
||
64 | * the threema id can receive files |
||
65 | * @return bool |
||
66 | */ |
||
67 | public function canFile() { |
||
70 | |||
71 | private function can($key) { |
||
75 | |||
76 | /** |
||
77 | * @param int $httpCode |
||
78 | * @return string |
||
79 | */ |
||
80 | protected function getErrorMessageByErrorCode($httpCode) { |
||
92 | } |
||
93 |