Mac SDK
ZoomSDKQAController.h
1 //
2 // ZoomSDKQAController.h
3 // ZoomSDK
4 //
5 // Created by bellatu on 2019/10/18.
6 // Copyright © 2019 TOTTI. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "ZoomSDKErrors.h"
11 
12 
13 @interface ZoomSDKAnswerInfo :NSObject
18 -(NSString*)getAnswerID;
19 
24 -(BOOL)isSenderMyself;
25 
30 -(time_t)getTimeStamp;
31 
36 -(NSString*)getAnswerContent;
37 
42 -(NSString*)getSendName;
43 
48 -(NSString*)getQuestionId;
49 
54 -(BOOL)isPrivate;
55 
60 -(BOOL)isLiveAnswer;
61 @end
62 
63 
64 @interface ZoomSDKQuestionInfo : NSObject
65 
70 -(NSString*)getQuestionId;
75 -(BOOL)isSenderMyself;
76 
81 -(time_t )getTimeStamp;
82 
87 -(NSString*)getQuestionContent;
88 
93 -(NSString*)getSendName;
94 
99 -(BOOL)isAnonymous;
100 
105 -(BOOL)isMarkedAsAnswered;
106 
111 -(BOOL)isMarkedAsDismissed;
112 
117 -(int)upVoteNum;
118 
123 -(BOOL)hasLiveAnswers;
124 
129 -(BOOL)hasTextAnswers;
130 
135 -(BOOL)isMySelfUpvoted;
136 
141 -(BOOL)amILiveAnswering;
142 
147 -(NSArray*)getAnswerList;
148 
153 -(NSString*)getLiveAnswerName;
154 
159 -(BOOL)isLiveAnswering;
160 @end
161 
162 @protocol ZoomSDKQAControllerDelegate <NSObject>
163 
168 -(void)onQAConnectStatus:(ZoomSDKQAConnectStatus)status;
169 
175 -(void)onAddQuestion:(NSString *)questionID isSuccess:(BOOL)success;
176 
182 -(void)onAddAnswer:(NSString *)answerID isSuccess:(BOOL)success;
183 
188 -(void)onQuestionMarkedAsDismissed:(NSString*)questionID;
189 
194 -(void)onReopenQuestion:(NSString*)questionID;
195 
200 -(void)onReceiveQuestion:(NSString*)questionID;
201 
206 -(void)onReceiveAnswer:(NSString*)answerID;
207 
212 -(void)onUserLivingReply:(NSString*)questionID;
213 
218 -(void)onUserEndLiving:(NSString*)questionID;
219 
225 -(void)onVoteupQuestion:(NSString*)questionID orderChanged:(BOOL)isChanged;
226 
232 -(void)onRevokeVoteupQuestion:(NSString*)questionID orderChanged:(BOOL)isChanged;
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)id<ZoomSDKQAControllerDelegate> delegate;
276 
281 -(BOOL)isQAEnable;
286 -(NSArray*)getAllQuestionList;
287 
292 -(NSArray*)getMyQuestionList;
293 
298 -(NSArray*)getOpenQuestionList;
299 
304 -(NSArray*)getDismissedQuestionList;
305 
310 -(NSArray*)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)enableAnonnymousSendQuestion:(BOOL)enable;
372 
378 -(ZoomSDKError)enableQAComment:(BOOL)enable;
379 
385 -(ZoomSDKError)enableQAVoteup:(BOOL)enable;
386 
392 -(ZoomSDKError)setAttendeeViewQuestionType:(AttendeeViewQuestionType)type;
393 
399 -(ZoomSDKQuestionInfo*)getQuestionByQuestionID:(NSString*)questionID;
400 
405 -(BOOL)isQAVoteupEnable;
406 
411 -(BOOL)isQACommentEnabled;
412 
417 -(BOOL)isAllowAskQuestionAnonymously;
418 
423 -(BOOL)isAttendeeCanViewAllQuestions;
424 
430 -(ZoomSDKAnswerInfo *)getAnswerByAnswerID:(NSString *)answerID;
431 
437 -(ZoomSDKError)startLiving:(NSString *)questionId;
438 
444 -(ZoomSDKError)endLiving:(NSString *)questionId;
445 
450 -(int)getOpenQuestionCount;
451 
456 -(int)getDismissedQuestionCount;
457 
462 -(int)getAnsweredQuestionCount;
463 
468 -(int)getMyQuestionCount;
469 
475 -(ZoomSDKError)deleteQuestion:(NSString *)questionID;
476 
482 -(ZoomSDKError)deleteAnswer:(NSString *)answerID;
483 
484 @end
-[ZoomSDKQuestionInfo getTimeStamp]
time_t getTimeStamp()
Get the timestamps of the current question.
-[ZoomSDKQuestionInfo hasLiveAnswers]
BOOL hasLiveAnswers()
Get the question has live answer.
ZoomSDKQAControllerDelegate-p
Definition: ZoomSDKQAController.h:162
-[ZoomSDKAnswerInfo isLiveAnswer]
BOOL isLiveAnswer()
Get the answer is live.
-[ZoomSDKAnswerInfo getAnswerID]
NSString * getAnswerID()
Get the answer ID.
-[ZoomSDKQuestionInfo getQuestionId]
NSString * getQuestionId()
Get the question ID.
-[ZoomSDKAnswerInfo getSendName]
NSString * getSendName()
Get the senderName of the send answer.
ZoomSDKAnswerInfo
Definition: ZoomSDKQAController.h:14
-[ZoomSDKAnswerInfo getAnswerContent]
NSString * getAnswerContent()
Get the answer content.
-[ZoomSDKQuestionInfo isLiveAnswering]
BOOL isLiveAnswering()
Get the queestion is answered living.
-[ZoomSDKQuestionInfo isMySelfUpvoted]
BOOL isMySelfUpvoted()
Get the question is myself vote.
-[ZoomSDKAnswerInfo isPrivate]
BOOL isPrivate()
Get the answer is private.
-[ZoomSDKQuestionInfo getLiveAnswerName]
NSString * getLiveAnswerName()
Get the person name of live answered question.
-[ZoomSDKQuestionInfo hasTextAnswers]
BOOL hasTextAnswers()
Get the question has text answer.
ZoomSDKQuestionInfo
Definition: ZoomSDKQAController.h:65
-[ZoomSDKAnswerInfo getQuestionId]
NSString * getQuestionId()
Get the question ID.
-[ZoomSDKAnswerInfo isSenderMyself]
BOOL isSenderMyself()
Get the question answer is send myself.
-[ZoomSDKAnswerInfo getTimeStamp]
time_t getTimeStamp()
Get the timestamps of the current answer.
-[ZoomSDKQuestionInfo upVoteNum]
int upVoteNum()
Get the question vote number.
-[ZoomSDKQuestionInfo getSendName]
NSString * getSendName()
Get the senderName of the send question.
-[ZoomSDKQuestionInfo isSenderMyself]
BOOL isSenderMyself()
Get the question is send by self.
-[ZoomSDKQuestionInfo isAnonymous]
BOOL isAnonymous()
Get the question is anonymous.
ZoomSDKQAController
Definition: ZoomSDKQAController.h:272
-[ZoomSDKQuestionInfo getQuestionContent]
NSString * getQuestionContent()
Get the question content.
-[ZoomSDKQuestionInfo isMarkedAsAnswered]
BOOL isMarkedAsAnswered()
Get the question is marked as answer.
-[ZoomSDKQuestionInfo getAnswerList]
NSArray * getAnswerList()
Get the question answer list.
-[ZoomSDKQuestionInfo isMarkedAsDismissed]
BOOL isMarkedAsDismissed()
Get the question is marked as dismissed.
-[ZoomSDKQuestionInfo amILiveAnswering]
BOOL amILiveAnswering()
Get the question is myself live answered.