macOS SDK API Reference
Loading...
Searching...
No Matches
ZoomSDKQAController.h
Go to the documentation of this file.
2
3#import <Foundation/Foundation.h>
4#import "ZoomSDKErrors.h"
5
6
7@interface ZoomSDKAnswerInfo :NSObject
12-(NSString*)getAnswerID;
13
18-(BOOL)isSenderMyself;
19
24-(time_t)getTimeStamp;
25
30-(NSString*)getAnswerContent;
31
36-(NSString*)getSendName;
37
42-(NSString*)getQuestionId;
43
48-(BOOL)isPrivate;
49
54-(BOOL)isLiveAnswer;
55@end
56
57
58@interface ZoomSDKQuestionInfo : NSObject
59
64-(NSString*)getQuestionId;
69-(BOOL)isSenderMyself;
70
75-(time_t )getTimeStamp;
76
81-(NSString*)getQuestionContent;
82
87-(NSString*)getSendName;
88
93-(BOOL)isAnonymous;
94
100
106
111-(int)upVoteNum;
112
117-(BOOL)hasLiveAnswers;
118
123-(BOOL)hasTextAnswers;
124
129-(BOOL)isMySelfUpvoted;
130
135-(BOOL)amILiveAnswering;
136
141-(NSArray*)getAnswerList;
142
147-(NSString*)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*)questionID;
195
200-(void)onReceiveAnswer:(NSString*)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)onAllowAskQuestionAnonymousStatus:(BOOL)bEnabled;
233
238-(void)onAllowAttendeeViewAllQuestionStatus:(BOOL)bEnabled;
239
244-(void)onAllowAttendeeVoteupQuestionStatus:(BOOL)bEnabled;
245
250-(void)onAllowAttendeeCommentQuestionStatus:(BOOL)bEnabled;
251
256-(void)onDeleteQuestions:(NSArray *)questions;
257
262-(void)onDeleteAnswers:(NSArray *)answer;
263@end
264
265@interface ZoomSDKQAController : NSObject
266{
267 id<ZoomSDKQAControllerDelegate> _delegate;
268}
269@property(nonatomic,assign)id<ZoomSDKQAControllerDelegate> delegate;
270
275-(BOOL)isQAEnable;
280-(NSArray*)getAllQuestionList;
281
286-(NSArray*)getMyQuestionList;
287
292-(NSArray*)getOpenQuestionList;
293
298-(NSArray*)getDismissedQuestionList;
299
304-(NSArray*)getAnsweredQuestionList;
305
312-(ZoomSDKError)addQuestionWithQuestionContent:(NSString*)content isAnonymous:(BOOL)Anonymous;
313
320-(ZoomSDKError)answerQuestionPrivateWithQuestionID:(NSString*)questionID answerContent:(NSString*)content;
321
328-(ZoomSDKError)answerQuestionPublicWithQuestionID:(NSString*)questionID answerContent:(NSString*)content;
329
335-(ZoomSDKError)dismissQuestionWithQuestionID:(NSString*)questionID;
336
342-(ZoomSDKError)reopenQuestionWithQuestionID:(NSString*)questionID;
343
350-(ZoomSDKError)commentQuestionWithQuestionID:(NSString*)questionID commentContent:(NSString*)content;
351
358-(ZoomSDKError)voteupQuestionWithQuestionID:(NSString*)questionID isEableVokeup:(BOOL)enable;
359
365-(ZoomSDKError)enableAnonnymousSendQuestion:(BOOL)enable;
366
372-(ZoomSDKError)enableQAComment:(BOOL)enable;
373
379-(ZoomSDKError)enableQAVoteup:(BOOL)enable;
380
386-(ZoomSDKError)setAttendeeViewQuestionType:(AttendeeViewQuestionType)type;
387
393-(ZoomSDKQuestionInfo*)getQuestionByQuestionID:(NSString*)questionID;
394
399-(BOOL)isQAVoteupEnable;
400
405-(BOOL)isQACommentEnabled;
406
411-(BOOL)isAllowAskQuestionAnonymously;
412
417-(BOOL)isAttendeeCanViewAllQuestions;
418
424-(ZoomSDKAnswerInfo *)getAnswerByAnswerID:(NSString *)answerID;
425
431-(ZoomSDKError)startLiving:(NSString *)questionId;
432
438-(ZoomSDKError)endLiving:(NSString *)questionId;
439
444-(int)getOpenQuestionCount;
445
450-(int)getDismissedQuestionCount;
451
456-(int)getAnsweredQuestionCount;
457
462-(int)getMyQuestionCount;
463
469-(ZoomSDKError)deleteQuestion:(NSString *)questionID;
470
476-(ZoomSDKError)deleteAnswer:(NSString *)answerID;
477
482- (BOOL)isQALegalNoticeAvailable;
483
488- (NSString *)getQALegalNoticesPrompt;
489
494- (NSString *)getQALegalNoticesExplained;
495@end
ZoomSDKQAConnectStatus
Enumerations of Q&A connect status.
AttendeeViewQuestionType
Enumerations of attendee view question type.
ZoomSDKError
Enumeration of common errors of SDK.
NSString * getSendName()
Get the senderName of the send answer.
NSString * getAnswerID()
Get the answer ID.
NSString * getQuestionId()
Get the question ID.
NSString * getAnswerContent()
Get the answer content.
BOOL isLiveAnswer()
Get the answer is live.
time_t getTimeStamp()
Get the timestamps of the current answer.
BOOL isSenderMyself()
Get the question answer is send myself.
BOOL isPrivate()
Get the answer is private.
id< ZoomSDKQAControllerDelegate > _delegate
BOOL isMarkedAsDismissed()
Get the question is marked as dismissed.
BOOL hasLiveAnswers()
Get the question has live answer.
NSString * getSendName()
Get the senderName of the send question.
BOOL isAnonymous()
Get the question is anonymous.
BOOL isLiveAnswering()
Get the queestion is answered living.
NSString * getQuestionContent()
Get the question content.
NSString * getQuestionId()
Get the question ID.
BOOL isMarkedAsAnswered()
Get the question is marked as answer.
NSString * getLiveAnswerName()
Get the person name of live answered question.
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.
BOOL isSenderMyself()
Get the question is send by self.
time_t getTimeStamp()
Get the timestamps of the current question.
int upVoteNum()
Get the question vote number.
NSArray * getAnswerList()
Get the question answer list.