6#ifndef ZRC_IMEETINGPOLLINGHELPER_H
7#define ZRC_IMEETINGPOLLINGHELPER_H
PollingQuestionType
Polling question type Here are more detailed structural descriptions.
@ PollingQuestionTypeFillBlank
Fill blank.
@ PollingQuestionTypeShortAnswer
Short answer.
@ PollingQuestionTypeMatching
Matching.
@ PollingQuestionTypeDropDown
Drop down choice.
@ PollingQuestionTypeRatingScale
Rating scale.
@ PollingQuestionTypeLongAnswer
Long answer.
@ PollingQuestionTypeUnknown
Invalid.
@ PollingQuestionTypeRankOrder
Rank order.
@ PollingQuestionTypeSingle
Single choice.
@ PollingQuestionTypeMulti
Multi choice.
PollingDisplayType
Polling display type Here are more detailed structural descriptions.
@ PollingDisplayTypeMainView
Display question information.
@ PollingDisplayTypeInvalid
Invalid.
@ PollingDisplayTypeImage
Display question image.
@ PollingDisplayTypeAnswers
Display question answer.
PollingRoleType
Polling role type. Polling session role type is different from meeting's host/cohost or webinar's pan...
@ PollingRoleTypeHost
Host, can manage polling.
@ PollingRoleTypeAttendee
Attendee, can answer questions or participate poll.
@ PollingRoleTypeUnknown
Invalid.
@ PollingRoleTypePanelist
Panelist, view only for polling. If poll host allow PollingOptionTypeAllowPanelistVote,...
PollingActionType
Polling action type Here are more detailed structural descriptions.
@ PollingActionTypeFetch
Fetch polling detail. No used, use GetPollingDetail instead.
@ PollingActionTypeStopShare
Stop share polling result.
@ PollingActionTypeError
No used.
@ PollingActionTypeStart
Start polling.
@ PollingActionTypeShare
Share polling result.
@ PollingActionTypeReopen
Reopen polling.
@ PollingActionTypeClose
Close polling.
@ PollingActionTypeSubmit
Submit polling.
PollingStatus
Polling status Here are more detailed structural descriptions.
@ PollingStatusShareResult
Polling is sharing result.
@ PollingStatusClosed
Polling closed.
@ PollingStatusOpen
Polling opened.
@ PollingStatusNotStart
Polling not started.
PollingType
Polling type. Here are more detailed structural descriptions.
@ PollingTypeBasic
Basic polling.
@ PollingTypeAdvanced
Advanced polling.
@ PollingTypeUnknown
Invalid.
PollingOptionType
Polling option type Here are more detailed structural descriptions.
@ PollingOptionTypeShowQuestionOneByOne
Option type: ShowQuestionOneByOne, applicable to PollingTypeQuiz.
@ PollingOptionTypeAllowRandomOrder
Option type: AllowRandomOrder, applicable to PollingTypeQuiz.
@ PollingOptionTypeAllowPanelistVote
Option type: AllowPanelistVote, applicable in webinar.
@ PollingOptionTypeShowAnswerToAll
Option type: ShowAnswerToAll, applicable to PollingTypeQuiz.
ZRCSDKError
SDK error types. Here are more detailed structural descriptions.
Meeting Polling helper interface.
virtual ZRCSDKError GetMyPollingRoleType(PollingRoleType &myRole)=0
Query your polling role type.
virtual ZRCSDKError TakeInChargePolling()=0
Take in charge of polling.
virtual ZRCSDKError UpdatePollingOption(const PollingOption &option)=0
Update polling option.
virtual ZRCSDKError EnableShowPollOverlay(bool enable, const std::string &pollingID, const std::string &questionID, int32_t questionIndex)=0
Enable or disable show poll overlay.
virtual ZRCSDKError DeregisterSink(IMeetingPollingHelperSink *pSink)=0
Deregister meeting polling helper callback sink.
virtual ZRCSDKError DownloadQuestionImage(const std::string &imageUrl, const std::string &localFilePath)=0
Download question image.
virtual ZRCSDKError IsSelfInChargePolling(bool &inCharge)=0
Query if you are in charge of polling.
virtual ~IMeetingPollingHelper()
virtual ZRCSDKError SyncAnswer(const PollingQuestionInfo &question)=0
Sync answer with ZR.
virtual ZRCSDKError ShowPollOverlay(bool show, const std::string &pollingID, const std::string &questionID, int32_t questionIndex)=0
Show or hide poll overlay.
virtual ZRCSDKError RegisterSink(IMeetingPollingHelperSink *pSink)=0
Register meeting polling helper callback sink.
virtual ZRCSDKError OperatePolling(PollingActionType actionType, const std::string &pollingID)=0
Operate polling.
virtual ZRCSDKError GetPollingDetail(const std::string &pollingID)=0
Get polling detail information.
virtual ZRCSDKError UpdateDisplayOnZRInfo(const PollingDisplayOnZRInfo &option)=0
Update display on ZR info.
Meeting Polling helper event callback.
virtual void OnPollingSessionInactiveNotification(bool isInactive)=0
Polling session inactive notification.
virtual void OnPollingDisplayOnZRNotification(bool enable)=0
Polling display on ZR notification.
virtual void OnPollingDocReceived(const PollingInfo &detailPolling, const std::vector< PollingInfo > &pollings, bool isPollingButtonVisible)=0
Receive polling doc notification.
virtual void OnPollingStatusChange(const PollingInfo &polling, PollingRoleType roleType, const std::string &deviceID)=0
Polling status change notification.
virtual void OnUpdateDetailPollingInfo(const PollingInfo &detailPolling)=0
Polling detail info notification.
virtual void OnPollingRoleChanged(PollingRoleType roleType, bool isPollingButtonVisible)=0
Polling role type changed notification.
virtual void OnTakeInChargeNotification(bool isSelfIncharge)=0
Take in charge device update notification.
virtual void OnPollingResultUpdated(const PollingInfo &polling)=0
Polling result update notification.
virtual void OnDownloadingFinished(const std::string &localFilePath, uint32_t result)=0
Download result.
virtual ~IMeetingPollingHelperSink()
virtual void OnPollingActionNotification(const PollingUserAction &userAction)=0
Polling action notification.
virtual void OnUpdatePollingBasicInfo(const PollingBasicInfo &basicInfo)=0
Update polling basic info notification.
virtual void OnPollingOptionsUpdated(const std::vector< PollingOption > &pollingOptions)=0
Polling options update notification.
virtual void OnPollingAnswerUpdated(const PollingQuestionInfo &question)=0
Polling question's answer update notification.
virtual void OnPollingIsShowPollOverlay(bool isShow)=0
Indicates whether show overlay on ZR.
std::string answerContent
Answer content.
std::string answerID
Answer ID. [Required] if you are SyncAnswer with ZR.
std::string textAnswer
User input text answer. [Required] if you are SyncAnswer with ZR.
int32_t selectedCount
Answer being selected count, used for display scale.
bool isSelected
TRUE indicates current answer is selected. [Required] if you are SyncAnswer with ZR.
PollingInfo detailPolling
Current detail polling info.
bool isPollingButtonVisible
PollingRoleTypeHost check this show polling button.
bool isInChargeDevice
TRUE indicates current is the incharge device of polling.
bool isInRandomOrder
TRUE indicates show polling questions in random order.
PollingRoleType roleType
My role type in this polling, see PollingRoleType enum.
bool isShowOnZrOption
TRUE indicates polling is showing on ZR.
bool isAllowPanelistVote
TRUE indicates allow panelist to vote.
std::vector< PollingInfo > pollings
Pollings' basic info.
bool isShowCorrectAnswerToAll
TRUE indicates show polling correct answer to all.
bool isPollSessionInactive
TRUE indicates polling session inactive.
bool isShowPollOverlay
TRUE indicates show polling overlay.
bool isShowQuestionOneByOne
TRUE indicates show polling questions one by one.
Polling display on ZR screen info. Used to sync status between multi ZRC and ZR display.
bool isShowOnZROption
TRUE indicates polling is showing on ZR.
std::string pollingID
Polling ID.
int32_t questionIndex
Question index.
bool isShowOnInChargeZRC
TRUE indicates polling is showing on in charge ZRC.
PollingDisplayType type
Display on ZR screen type, see PollingDisplayType enum.
std::string questionID
Question ID.
PollingStatus pollingStatus
Polling actual status, see PollingType enum.
std::string pollingName
Polling Name.
std::vector< PollingQuestionInfo > questions
Polling questions.
uint64_t elapsedTime
Polling starting elapsed time.
int32_t votableUserCount
Votable user count.
int32_t totalVotedCount
Polling total voted count.
PollingStatus myPollingStatus
Self polling status, see PollingType enum.
std::string pollingId
Polling ID.
bool isAnonymous
TRUE indicates polling is anonymous.
PollingType pollingType
Polling type, see PollingType enum.
int32_t questionCount
Polling question count.
bool isAllow
The option value.
PollingOptionType type
The option type.
std::vector< PollingAnswer > answers
The answer list. [Required] if you are SyncAnswer with ZR.
std::string questionID
Question ID. [Required] if you are SyncAnswer with ZR.
PollingQuestionType questionType
Question type, [Required] if you are SyncAnswer with ZR. see PollingQuestionType enum.
bool isRequired
TRUE indicates the question must be answered before submit polling.
std::string imageContent
Question image content.
std::vector< PollingQuestionInfo > subQuestions
Sub-question list. If sub-questions exist, [Required] if you are SyncAnswer with ZR.
std::vector< PollingAnswer > rightAnswers
The answer list. The right answer only contains answerId.
int32_t questionReplyCount
Question being replied count.
int32_t questionIndex
Question's index in polling. [Required] if you are SyncAnswer with ZR.
int32_t minCharacters
Short/Long answer question type minimum input characters.
bool isCaseSensitive
TRUE indicates FillBlankType question is case sensitive.
std::string questionContent
Question content.
std::string imageURL
Question image URL.
int32_t maxCharacters
Short/Long answer question type maximum input characters.
std::string questionSequence
Sub-questions serial number. For main question, this is same as its questionIndex.
Polling user action info.
int32_t unanswerQuestionIndex
Unanswered question index.
std::string errorMessage
Error message.
PollingStatus pollingStatus
Polling actual status, see PollingType enum.
PollingStatus myPollingStatus
My polling status, see PollingType enum.
std::string pollingID
Polling ID.
PollingActionType actionType
Polling action type, see PollingActionType enum.
int32_t result
Action result.