1 | <?php |
||
19 | class CommandModel extends AbstractModel |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private static $endpoint = '/commands'; |
||
25 | |||
26 | /** |
||
27 | * @param array $requestOptions |
||
28 | * @return \Psr\Http\Message\ResponseInterface |
||
29 | */ |
||
30 | public function createCommand(array $requestOptions) |
||
34 | |||
35 | /** |
||
36 | * @param array $requestOptions |
||
37 | * @return \Psr\Http\Message\ResponseInterface |
||
38 | */ |
||
39 | public function listCommandsForTeam(array $requestOptions) |
||
43 | |||
44 | /** |
||
45 | * @param $teamId |
||
46 | * @return \Psr\Http\Message\ResponseInterface |
||
47 | */ |
||
48 | public function listAutocompleteCommands($teamId) |
||
52 | |||
53 | /** |
||
54 | * @param $commandId |
||
55 | * @param array $requestOptions |
||
56 | * @return \Psr\Http\Message\ResponseInterface |
||
57 | */ |
||
58 | public function updateCommand($commandId, array $requestOptions) |
||
62 | |||
63 | /** |
||
64 | * @param $commandId |
||
65 | * @return \Psr\Http\Message\ResponseInterface |
||
66 | */ |
||
67 | public function deleteCommand($commandId) |
||
71 | |||
72 | /** |
||
73 | * @param $commandId |
||
74 | * @return \Psr\Http\Message\ResponseInterface |
||
75 | */ |
||
76 | public function generateNewToken($commandId) |
||
80 | |||
81 | /** |
||
82 | * @param array $requestOptions |
||
83 | * @return \Psr\Http\Message\ResponseInterface |
||
84 | */ |
||
85 | public function executeCommand(array $requestOptions) |
||
89 | } |
||
90 |