1 | <?php |
||
25 | class ChannelModel extends AbstractModel |
||
26 | { |
||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | public static $endpoint = '/channels'; |
||
31 | |||
32 | /** |
||
33 | * @param array $requestOptions |
||
34 | * @return ResponseInterface |
||
35 | */ |
||
36 | public function createChannel(array $requestOptions) |
||
40 | |||
41 | /** |
||
42 | * @param array $requestOptions |
||
43 | * @return ResponseInterface |
||
44 | */ |
||
45 | public function createDirectMessageChannel(array $requestOptions) |
||
49 | |||
50 | /** |
||
51 | * @param array $requestOptions |
||
52 | * @return ResponseInterface |
||
53 | */ |
||
54 | public function createGroupMessageChannel(array $requestOptions) |
||
58 | |||
59 | /** |
||
60 | * @param $teamId |
||
61 | * @param array $requestOptions |
||
62 | * @return ResponseInterface |
||
63 | */ |
||
64 | public function getChannelsListByIds($teamId, array $requestOptions) |
||
68 | |||
69 | /** |
||
70 | * @param $channelId |
||
71 | * @return ResponseInterface |
||
72 | */ |
||
73 | public function getChannel($channelId) |
||
77 | |||
78 | /** |
||
79 | * @param $channelId |
||
80 | * @param array $requestOptions |
||
81 | * @return ResponseInterface |
||
82 | */ |
||
83 | public function updateChannel($channelId, array $requestOptions) |
||
87 | |||
88 | /** |
||
89 | * @param $channelId |
||
90 | * @return ResponseInterface |
||
91 | */ |
||
92 | public function deleteChannel($channelId) |
||
96 | |||
97 | /** |
||
98 | * @param $channelId |
||
99 | * @param array $requestOptions |
||
100 | * @return ResponseInterface |
||
101 | */ |
||
102 | public function patchChannel($channelId, array $requestOptions) |
||
106 | |||
107 | /** |
||
108 | * @param $channelId |
||
109 | * @return ResponseInterface |
||
110 | */ |
||
111 | public function restoreChannel($channelId) |
||
115 | |||
116 | /** |
||
117 | * @param $channelId |
||
118 | * @return ResponseInterface |
||
119 | */ |
||
120 | public function getChannelStatistics($channelId) |
||
124 | |||
125 | /** |
||
126 | * @param $channelId |
||
127 | * @return ResponseInterface |
||
128 | */ |
||
129 | public function getChannelsPinnedPosts($channelId) |
||
133 | |||
134 | /** |
||
135 | * @param $teamId |
||
136 | * @param $channelName |
||
137 | * @return ResponseInterface |
||
138 | */ |
||
139 | public function getChannelByName($teamId, $channelName) |
||
143 | |||
144 | /** |
||
145 | * @param $teamName |
||
146 | * @param $channelName |
||
147 | * @return ResponseInterface |
||
148 | */ |
||
149 | public function getChannelByNameAndTeamName($teamName, $channelName) |
||
153 | |||
154 | /** |
||
155 | * @param $channelId |
||
156 | * @param array $requestOptions |
||
157 | * @return ResponseInterface |
||
158 | */ |
||
159 | public function getChannelMembers($channelId, array $requestOptions) |
||
163 | |||
164 | /** |
||
165 | * @param $channelId |
||
166 | * @param array $requestOptions |
||
167 | * @return ResponseInterface |
||
168 | */ |
||
169 | public function addUser($channelId, array $requestOptions) |
||
173 | |||
174 | /** |
||
175 | * @param $channelId |
||
176 | * @param array $requestOptions |
||
177 | * @return ResponseInterface |
||
178 | */ |
||
179 | public function getChannelMembersByIds($channelId, array $requestOptions) |
||
183 | |||
184 | /** |
||
185 | * @param $channelId |
||
186 | * @param $userId |
||
187 | * @return ResponseInterface |
||
188 | */ |
||
189 | public function getChannelMember($channelId, $userId) |
||
193 | |||
194 | /** |
||
195 | * @param $channelId |
||
196 | * @param $userId |
||
197 | * @return ResponseInterface |
||
198 | */ |
||
199 | public function removeUserFromChannel($channelId, $userId) |
||
203 | |||
204 | /** |
||
205 | * @param $channelId |
||
206 | * @param $userId |
||
207 | * @param array $requestOptions |
||
208 | * @return ResponseInterface |
||
209 | */ |
||
210 | public function updateChannelRoles($channelId, $userId, array $requestOptions) |
||
214 | |||
215 | /** |
||
216 | * @param $channelId |
||
217 | * @param $userId |
||
218 | * @param array $requestOptions |
||
219 | * @return ResponseInterface |
||
220 | */ |
||
221 | public function updateChannelNotifications($channelId, $userId, array $requestOptions) |
||
225 | |||
226 | /** |
||
227 | * @param $userId |
||
228 | * @param array $requestOptions |
||
229 | * @return ResponseInterface |
||
230 | */ |
||
231 | public function viewChannel($userId, array $requestOptions) |
||
235 | |||
236 | /** |
||
237 | * @param $userId |
||
238 | * @param $teamId |
||
239 | * @return ResponseInterface |
||
240 | */ |
||
241 | public function getChannelMembersForTheUser($userId, $teamId) |
||
245 | |||
246 | /** |
||
247 | * @param $userId |
||
248 | * @param $teamId |
||
249 | * @return ResponseInterface |
||
250 | */ |
||
251 | public function getChannelsForUser($userId, $teamId) |
||
255 | |||
256 | /** |
||
257 | * @param $userId |
||
258 | * @param $channelId |
||
259 | * @return ResponseInterface |
||
260 | */ |
||
261 | public function getUnreadMessages($userId, $channelId) |
||
265 | |||
266 | /** |
||
267 | * @param $channelId |
||
268 | * @return ResponseInterface |
||
269 | */ |
||
270 | public function convertChannelFromPublicToPrivate($channelId) |
||
274 | |||
275 | /** |
||
276 | * @param $teamId |
||
277 | * @param array $requestOptions |
||
278 | * @return ResponseInterface |
||
279 | */ |
||
280 | public function getPublicChannels($teamId, array $requestOptions) |
||
284 | |||
285 | /** |
||
286 | * @param $teamId |
||
287 | * @param array $requestOptions |
||
288 | * @return ResponseInterface |
||
289 | */ |
||
290 | public function getDeletedChannels($teamId, array $requestOptions) |
||
294 | |||
295 | /** |
||
296 | * @param $teamId |
||
297 | * @param array $requestOptions |
||
298 | * @return ResponseInterface |
||
299 | */ |
||
300 | public function autocompleteChannels($teamId, array $requestOptions) |
||
304 | |||
305 | /** |
||
306 | * @param $teamId |
||
307 | * @param array $requestOptions |
||
308 | * @return ResponseInterface |
||
309 | */ |
||
310 | public function autocompleteChannelsForSearch($teamId, array $requestOptions) |
||
314 | |||
315 | /** |
||
316 | * @param $teamId |
||
317 | * @param array $requestOptions |
||
318 | * @return ResponseInterface |
||
319 | */ |
||
320 | public function searchChannels($teamId, array $requestOptions) |
||
324 | } |
||
325 |