1 | <?php |
||
8 | class Negotiations extends Endpoint |
||
9 | { |
||
10 | const RESOURCE = 'negotiations'; |
||
11 | |||
12 | use HasView, HasAll; |
||
13 | |||
14 | public function active() |
||
15 | { |
||
16 | return $this->getResource('active'); |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @param string $id |
||
21 | * @return array |
||
22 | */ |
||
23 | public function messages($id) |
||
27 | |||
28 | /** |
||
29 | * @param int $vacancyId |
||
30 | * @return mixed |
||
31 | */ |
||
32 | public function invited($vacancyId) |
||
36 | |||
37 | public function view($negotiationId) |
||
41 | |||
42 | /** |
||
43 | * @param int $id |
||
44 | * @param string $message |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function message($id, $message) |
||
51 | } |