1 | <?php |
||
17 | class ChatRoom extends Rest |
||
18 | { |
||
19 | /** |
||
20 | * @return bool|array |
||
21 | */ |
||
22 | public function all() |
||
28 | |||
29 | /** |
||
30 | * @param string $room_id |
||
31 | * |
||
32 | * @return bool|array |
||
33 | */ |
||
34 | public function detail($room_id) |
||
40 | |||
41 | /** |
||
42 | * @param string $name |
||
43 | * @param string $description |
||
44 | * @param string $owner |
||
45 | * @param int $maxusers |
||
46 | * @param array $members |
||
47 | * |
||
48 | * @return bool|string Room id |
||
49 | */ |
||
50 | public function create( |
||
64 | |||
65 | /** |
||
66 | * @param string $room_id |
||
67 | * @param null|string $name |
||
68 | * @param null|string $description |
||
69 | * @param null|int $maxusers |
||
70 | * |
||
71 | * @return bool|array |
||
72 | */ |
||
73 | public function update($room_id, $name = null, $description = null, $maxusers = null) |
||
85 | |||
86 | /** |
||
87 | * @param string $room_id |
||
88 | * |
||
89 | * @return bool |
||
90 | */ |
||
91 | public function remove($room_id) |
||
97 | |||
98 | /** |
||
99 | * @param string $username |
||
100 | * |
||
101 | * @return bool|array |
||
102 | */ |
||
103 | public function getUserRooms($username) |
||
109 | |||
110 | /** |
||
111 | * @param string $room_id |
||
112 | * @param string $username |
||
113 | * |
||
114 | * @return bool |
||
115 | */ |
||
116 | public function join($room_id, $username) |
||
122 | |||
123 | /** |
||
124 | * @param string $room_id |
||
125 | * @param array $users |
||
126 | * |
||
127 | * @return bool|array |
||
128 | */ |
||
129 | public function batchJoin($room_id, array $users) |
||
143 | |||
144 | /** |
||
145 | * @param string $room_id |
||
146 | * @param string $username |
||
147 | * |
||
148 | * @return bool |
||
149 | */ |
||
150 | public function out($room_id, $username) |
||
156 | |||
157 | /** |
||
158 | * @param string $room_id |
||
159 | * @param array $users |
||
160 | * |
||
161 | * @return bool|array |
||
162 | */ |
||
163 | public function batchOut($room_id, array $users) |
||
170 | } |
||
171 |