1 | <?php |
||
25 | class PostModel extends AbstractModel |
||
26 | { |
||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | public static $endpoint = '/posts'; |
||
31 | |||
32 | /** |
||
33 | * @param array $requestOptions |
||
34 | * @return ResponseInterface |
||
35 | */ |
||
36 | public function createPost(array $requestOptions) |
||
40 | |||
41 | /** |
||
42 | * @param $postId |
||
43 | * @return ResponseInterface |
||
44 | */ |
||
45 | public function getPost($postId) |
||
49 | |||
50 | /** |
||
51 | * @param $postId |
||
52 | * @return ResponseInterface |
||
53 | */ |
||
54 | public function deletePost($postId) |
||
58 | |||
59 | /** |
||
60 | * @param $postId |
||
61 | * @param array $requestOptions |
||
62 | * @return ResponseInterface |
||
63 | */ |
||
64 | public function updatePost($postId, array $requestOptions) |
||
68 | |||
69 | /** |
||
70 | * @param $postId |
||
71 | * @param array $requestOptions |
||
72 | * @return ResponseInterface |
||
73 | */ |
||
74 | public function patchPost($postId, array $requestOptions) |
||
78 | |||
79 | /** |
||
80 | * @param $postId |
||
81 | * @return ResponseInterface |
||
82 | */ |
||
83 | public function getThread($postId) |
||
87 | |||
88 | /** |
||
89 | * @param $userId |
||
90 | * @param array $requestOptions |
||
91 | * @return ResponseInterface |
||
92 | */ |
||
93 | public function getFlaggedPosts($userId, array $requestOptions) |
||
97 | |||
98 | /** |
||
99 | * @param $postId |
||
100 | * @return ResponseInterface |
||
101 | */ |
||
102 | public function getFileInfoForPost($postId) |
||
106 | |||
107 | /** |
||
108 | * @param $channelId |
||
109 | * @param array $requestOptions |
||
110 | * @return ResponseInterface |
||
111 | */ |
||
112 | public function getPostsForChannel($channelId, array $requestOptions) |
||
116 | |||
117 | /** |
||
118 | * @param $teamId |
||
119 | * @param array $requestOptions |
||
120 | * @return ResponseInterface |
||
121 | */ |
||
122 | public function searchForTeamPosts($teamId, array $requestOptions) |
||
126 | |||
127 | /** |
||
128 | * @param $postId |
||
129 | * @return ResponseInterface |
||
130 | */ |
||
131 | public function pinPost($postId) |
||
135 | |||
136 | /** |
||
137 | * @param $postId |
||
138 | * @return ResponseInterface |
||
139 | */ |
||
140 | public function unpinPost($postId) |
||
144 | |||
145 | /** |
||
146 | * @param $postId |
||
147 | * @param $actionId |
||
148 | * @return ResponseInterface |
||
149 | */ |
||
150 | public function performPostAction($postId, $actionId) |
||
154 | |||
155 | /** |
||
156 | * @param $postId |
||
157 | * @return ResponseInterface |
||
158 | */ |
||
159 | public function getReactions($postId) |
||
163 | |||
164 | /** |
||
165 | * @param array $requestOptions |
||
166 | * @return ResponseInterface |
||
167 | */ |
||
168 | public function createEphemeralPost(array $requestOptions) |
||
172 | } |