Meeting SDK for macOS API Reference
Loading...
Searching...
No Matches
ZoomSDKQAController.h
Go to the documentation of this file.
1
2
3#import <Foundation/Foundation.h>
4#import <ZoomSDK/ZoomSDKErrors.h>
5
6NS_ASSUME_NONNULL_BEGIN
7@interface ZoomSDKAnswerInfo :NSObject
12- (NSString*_Nullable)getAnswerID;
13
18- (BOOL)isSenderMyself;
19
24- (time_t)getTimeStamp;
25
30- (NSString*_Nullable)getAnswerContent;
31
36- (NSString*_Nullable)getSendName;
37
42- (NSString*_Nullable)getQuestionId;
43
48- (BOOL)isPrivate;
49
54- (BOOL)isLiveAnswer;
55@end
56
57
58@interface ZoomSDKQuestionInfo : NSObject
59
64- (NSString*_Nullable)getQuestionId;
69- (BOOL)isSenderMyself;
70
75- (time_t )getTimeStamp;
76
81- (NSString*_Nullable)getQuestionContent;
82
87- (NSString*_Nullable)getSendName;
88
93- (BOOL)isAnonymous;
94
99- (BOOL)isMarkedAsAnswered;
100
105- (BOOL)isMarkedAsDismissed;
106
111- (int)upVoteNum;
112
117- (BOOL)hasLiveAnswers;
118
123- (BOOL)hasTextAnswers;
124
129- (BOOL)isMySelfUpvoted;
130
135- (BOOL)amILiveAnswering;
136
141- (NSArray*_Nullable)getAnswerList;
142
147- (NSString*_Nullable)getLiveAnswerName;
148
153- (BOOL)isLiveAnswering;
154@end
155
156@protocol ZoomSDKQAControllerDelegate <NSObject>
157
162- (void)onQAConnectStatus:(ZoomSDKQAConnectStatus)status;
163
169- (void)onAddQuestion:(NSString *)questionID isSuccess:(BOOL)success;
170
176- (void)onAddAnswer:(NSString *)answerID isSuccess:(BOOL)success;
177
182- (void)onQuestionMarkedAsDismissed:(NSString*)questionID;
183
188- (void)onReopenQuestion:(NSString*)questionID;
189
194- (void)onReceiveQuestion:(NSString*_Nullable)questionID;
195
200- (void)onReceiveAnswer:(NSString*_Nullable)answerID;
201
206- (void)onUserLivingReply:(NSString*)questionID;
207
212- (void)onUserEndLiving:(NSString*)questionID;
213
219- (void)onVoteupQuestion:(NSString*)questionID orderChanged:(BOOL)isChanged;
220
226- (void)onRevokeVoteupQuestion:(NSString*)questionID orderChanged:(BOOL)isChanged;
227
232- (void)onAllowAskQuestionStatus:(BOOL)bEnabled;
233
238- (void)onAllowAskQuestionAnonymousStatus:(BOOL)bEnabled;
239
244- (void)onAllowAttendeeViewAllQuestionStatus:(BOOL)bEnabled;
245
250- (void)onAllowAttendeeVoteupQuestionStatus:(BOOL)bEnabled;
251
256- (void)onAllowAttendeeCommentQuestionStatus:(BOOL)bEnabled;
257
262- (void)onDeleteQuestions:(NSArray *)questions;
263
268- (void)onDeleteAnswers:(NSArray *)answer;
269@end
270
271@interface ZoomSDKQAController : NSObject
272{
273 id<ZoomSDKQAControllerDelegate> _delegate;
274}
275@property(nonatomic,assign,nullable)id<ZoomSDKQAControllerDelegate> delegate;
276
281- (BOOL)isQAEnable;
286- (NSArray*_Nullable)getAllQuestionList;
287
292- (NSArray*_Nullable)getMyQuestionList;
293
298- (NSArray*_Nullable)getOpenQuestionList;
299
304- (NSArray*_Nullable)getDismissedQuestionList;
305
310- (NSArray*_Nullable)getAnsweredQuestionList;
311
318- (ZoomSDKError)addQuestionWithQuestionContent:(NSString*)content isAnonymous:(BOOL)Anonymous;
319
326- (ZoomSDKError)answerQuestionPrivateWithQuestionID:(NSString*)questionID answerContent:(NSString*)content;
327
334- (ZoomSDKError)answerQuestionPublicWithQuestionID:(NSString*)questionID answerContent:(NSString*)content;
335
341- (ZoomSDKError)dismissQuestionWithQuestionID:(NSString*)questionID;
342
348- (ZoomSDKError)reopenQuestionWithQuestionID:(NSString*)questionID;
349
356- (ZoomSDKError)commentQuestionWithQuestionID:(NSString*)questionID commentContent:(NSString*)content;
357
364- (ZoomSDKError)voteupQuestionWithQuestionID:(NSString*)questionID isEableVokeup:(BOOL)enable;
365
371- (ZoomSDKError)enableAskQuestion:(BOOL)enable;
377- (ZoomSDKError)enableAnonymousSendQuestion:(BOOL)enable;
378
384- (ZoomSDKError)enableQAComment:(BOOL)enable;
385
391- (ZoomSDKError)enableQAVoteup:(BOOL)enable;
392
398- (ZoomSDKError)setAttendeeViewQuestionType:(AttendeeViewQuestionType)type;
399
405- (ZoomSDKQuestionInfo*)getQuestionByQuestionID:(NSString*)questionID;
406
411- (BOOL)isAskQuestionEnabled;
416- (BOOL)isQAVoteupEnable;
417
422- (BOOL)isQACommentEnabled;
423
428- (BOOL)isAllowAskQuestionAnonymously;
429
434- (BOOL)isAttendeeCanViewAllQuestions;
435
441- (ZoomSDKAnswerInfo *)getAnswerByAnswerID:(NSString *)answerID;
442
448- (ZoomSDKError)startLiving:(NSString *)questionId;
449
455- (ZoomSDKError)endLiving:(NSString *)questionId;
456
461- (int)getOpenQuestionCount;
462
467- (int)getDismissedQuestionCount;
468
473- (int)getAnsweredQuestionCount;
474
479- (int)getMyQuestionCount;
480
486- (ZoomSDKError)deleteQuestion:(NSString *)questionID;
487
493- (ZoomSDKError)deleteAnswer:(NSString *)answerID;
494
499- (BOOL)isQALegalNoticeAvailable;
500
505- (NSString *)getQALegalNoticesPrompt;
506
511- (NSString *)getQALegalNoticesExplained;
512@end
513NS_ASSUME_NONNULL_END
ZoomSDKQAConnectStatus
Enumeration of Q&A connection statuses.
AttendeeViewQuestionType
Enumeration of attendee view question type.
ZoomSDKError
Enumeration of common errors of SDK.
NSString *_Nullable getAnswerID()
Get the answer ID.
BOOL isLiveAnswer()
Get the answer is live.
time_t getTimeStamp()
Get the timestamps of the current answer.
NSString *_Nullable getAnswerContent()
Get the answer content.
BOOL isSenderMyself()
Get the question answer is send myself.
NSString *_Nullable getQuestionId()
Get the question ID.
BOOL isPrivate()
Get the answer is private.
NSString *_Nullable getSendName()
Get the senderName of the send answer.
id< ZoomSDKQAControllerDelegate > _delegate
BOOL isMarkedAsDismissed()
Get the question is marked as dismissed.
NSString *_Nullable getLiveAnswerName()
Get the person name of live answered question.
BOOL hasLiveAnswers()
Get the question has live answer.
BOOL isAnonymous()
Get the question is anonymous.
BOOL isLiveAnswering()
Get the queestion is answered living.
BOOL isMarkedAsAnswered()
Get the question is marked as answer.
BOOL isMySelfUpvoted()
Get the question is myself vote.
BOOL hasTextAnswers()
Get the question has text answer.
BOOL amILiveAnswering()
Get the question is myself live answered.
NSArray *_Nullable getAnswerList()
Get the question answer list.
NSString *_Nullable getSendName()
Get the senderName of the send question.
NSString *_Nullable getQuestionContent()
Get the question content.
BOOL isSenderMyself()
Get the question is send by self.
NSString *_Nullable getQuestionId()
Get the question ID.
time_t getTimeStamp()
Get the timestamps of the current question.
int upVoteNum()
Get the question vote number.