1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
//
// MobileRTCBORole.h
// MobileRTC
//
// Created by Zoom Video Communications on 2020/2/11.
// Copyright © 2020 Zoom Video Communications, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef enum : NSUInteger {
BOUserStatusUnassigned = 1, //User is in main conference, not assigned to BO
BOUserStatusNotJoin = 2, //User is assigned to BO, but not join
BOUserStatusInBO = 3, //User is already in BO
} MobileRTCBOUserStatus;
@interface MobileRTCBOUser : NSObject
/*!
@brief get bo meeting user id.
*/
- (NSString * _Nullable)getUserId;
/*!
@brief get bo meeting user name.
*/
- (NSString * _Nullable)getUserName;
/*!
@brief get bo meeting user status.
*/
- (MobileRTCBOUserStatus)getUserStatus;
@end
@interface MobileRTCBOMeeting : NSObject
/*!
@brief get bo meeting id.
*/
- (NSString * _Nullable)getBOMeetingId;
/*!
@brief get bo meeting name.
*/
- (NSString * _Nullable)getBOMeetingName;
/*!
@brief get bo meeting user array.
*/
- (NSArray * _Nullable)getBOMeetingUserList;
@end
/*!
@brief enum for BO stop countdown.
*/
typedef NS_ENUM(NSUInteger, MobileRTCBOStopCountDown) {
MobileRTCBOStopCountDown_Not_CountDown = 0,
MobileRTCBOStopCountDown_Seconds_10,
MobileRTCBOStopCountDown_Seconds_15,
MobileRTCBOStopCountDown_Seconds_30,
MobileRTCBOStopCountDown_Seconds_60,
MobileRTCBOStopCountDown_Seconds_120,
};
/*!
@brief BO option.
*/
@interface MobileRTCBOOption : NSObject
/*!
@brief BO Count Down Second.
*/
@property (nonatomic, assign) MobileRTCBOStopCountDown countdownSeconds;
@end
/*
* host in master conf : creator + admin + assistant + dataHelper
* host in bo conf : admin + assistant + dataHelper
* cohost in master conf : attendee
* cohost in bo conf : assistant + dataHelper
* attendee in master conf : attendee
* attendee in bo conf : attendee
*/
/*
* 1. Function:
* 1) add/delete/rename bo meeting
* 2) assgin/remove user to bo meeting
* 2. Remarks:
* 1) only host in master meeting, can get this role
* 2) host changed, createor will assign to new host
*/
@interface MobileRTCBOCreator : NSObject
/*!
@brief create a bo meeting.
@param boName the BO name.
@return bo meeting id.
*/
- (NSString * _Nullable)createBO:(NSString * _Nonnull)boName;
/*!
@brief update bo meeting name with bo id.
@param boId the BO id.
@param boName the BO name.
@return update success or not.
*/
- (BOOL)updateBO:(NSString * _Nonnull)boId name:(NSString * _Nonnull)boName;
/*!
@brief remove a bo meeting.
@param boId the BO id.
@return remove bo meting success or not.
*/
- (BOOL)removeBO:(NSString * _Nonnull)boId;
/*!
@brief assign a user to a bo meeting.
@param boUserId the BO user id.
@param boId the BO id.
@return assign success or not.
*/
- (BOOL)assignUser:(NSString * _Nonnull)boUserId toBO:(NSString * _Nonnull)boId;
/*!
@brief remove a user from a bo meeting.
@return remove success or not.
*/
- (BOOL)removeUser:(NSString * _Nonnull)boUserId fromBO:(NSString * _Nonnull)boId;
/*!
@brief Set BO option.
@param option, the option that you want to set.
@return if success the return value is true, otherwise false.
*/
- (BOOL)setBOOption:(MobileRTCBOOption *_Nonnull)option;
/*!
@brief Get BO option.
@return the BOOption value.
*/
- (MobileRTCBOOption * _Nullable)getBOOption;
@end
/*
* 1. Function:
* 1) after bo started, assgin user to bo meeting,
* 2) after bo started, switch user from BO-A to BO-B
* 3) stop bo meeting
* 4) start bo meeting
* 2. Remarks:
* 1) host in master meeting or bo meeting, can get this role
* 2) can start bo meeting after bo meeting created by creator.
*/
@interface MobileRTCBOAdmin : NSObject
/*!
@brief start bo meeting which assigned.
@return start success or not
*/
- (BOOL)startBO;
/*!
@brief stop bo meeting which assigned.
@return stop success or not
*/
- (BOOL)stopBO;
/*!
@brief assign a bo user to a started bo meeting.
@param boUserId the BO user id.
@param boId the BO id.
@return the result of call the method.
*/
- (BOOL)assignNewUser:(NSString * _Nonnull)boUserId toRunningBO:(NSString * _Nonnull)boId;
/*!
@brief switch a user to a new started bo meeting.
@param boUserId the BO user id.
@param boId the BO id.
@return the result of call the method.
*/
- (BOOL)switchUser:(NSString * _Nonnull)boUserId toRunningBO:(NSString * _Nonnull)boId;
/*!
@brief indicate that the bo can be start or not.
@return the result of call the method.
*/
- (BOOL)canStartBO;
/*!
@brief join bo meeting for designated bo user id.
@param boUserId the BO user id.
@return the result of call the method.
*/
- (BOOL)joinBOByUserRequest:(NSString * _Nonnull)boUserId;
/*!
@brief reply ignore for the help request from bo attendees
@param boUserId the BO user id.
@return the result of call the method.
*/
- (BOOL)ignoreUserHelpRequest:(NSString * _Nonnull)boUserId;
/*!
@brief broadcase message for all attendees in the meeting.
@param strMsg the bo message.
@return the result of call the method.
*/
- (BOOL)broadcastMessage:(NSString * _Nonnull)strMsg;
/*!
@brief Host invite user return to main session, When BO is started and user is in BO.
@param boUserId the bo user id.
@return true indicates success, otherwise fail.
*/
- (BOOL)inviteBOUserReturnToMainSession:(NSString * _Nonnull)boUserId;
@end
/*
* 1. Function:
* 1) join bo meeting with bo id
* 2) leave bo meeting
* 2. Remarks:
* 1) host in master meeting or bo meeting, co-host in bo meeting, can get this role
*/
@interface MobileRTCBOAssistant : NSObject
/*!
@brief join a bo meeting with bo id..
@param boId the BO id.
@return the result of call the method.
*/
- (BOOL)joinBO:(NSString * _Nonnull)boId;
/*!
@brief leave joined bo meeting.
@return the result of call the method.
*/
- (BOOL)leaveBO;
@end
/*
* 1. Function:
* 1) only can join bo
* 2) leave bo
* 3) request help
* 2. Remarks:
* 1) if you are attendee, and are assigned to BO, you will get this role
* 2) if you are Co-Host, and are assigned to BO, you will get this role
*
*/
@interface MobileRTCBOAttendee : NSObject
/*!
@brief join to assined bo meeting.
@return the result of call the method.
*/
- (BOOL)joinBO;
/*!
@brief leave assined bo meeting.
@return the result of call the method.
*/
- (BOOL)leaveBO;
/*!
@brief get bo meeting name.
@return the bo name.
*/
- (NSString * _Nullable)getBOName;
/*!
@brief send help to admin
@return the result of call the method.
*/
- (BOOL)requestForHelp;
/*!
@brief if the host in current bo.
@return the result of call the method.
*/
- (BOOL)isHostInThisBO;
@end
/*
* 1. Function:
* 1) get unassigned user list
* 2) get bo list
* 2. Remarks:
* 1) when host in master meeting or bo meeting, you will get this role
* 2) when CoHost in bo conf, you will get this role
*/
@interface MobileRTCBOData : NSObject
/*!
@brief get un assined user list.
@return the unassigned user list.
*/
- (NSArray * _Nullable)getUnassignedUserList;
/*!
@brief get all bo meeting id list.
@return the BOMeeting id list.
*/
- (NSArray * _Nullable)getBOMeetingIDList;
/*!
@brief get bo user object by bo user id
@param userId the user id.
@return the object of MobileRTCBOUser.
*/
- (MobileRTCBOUser * _Nullable)getBOUserByUserID:(NSString * _Nonnull)userId;
/*!
@brief get bo meeting object by bo meeting id.
@param boId the BO id.
@return the object of MobileRTCBOMeeting.
*/
- (MobileRTCBOMeeting * _Nullable)getBOMeetingByID:(NSString * _Nonnull)boId;
/*!
@brief get bo meeting name of current BO.
@return the current BO name.
*/
- (NSString * _Nullable)getCurrentBOName;
/*!
@brief whether the boUserId is current user.
@param boUserId the bo user id.
@return the result of call the method.
*/
- (BOOL)isBOUserMyself:(NSString *_Nonnull)boUserId;
@end