HMSPollQuestion

data class HMSPollQuestion(val questionID: Int, val type: HMSPollQuestionType, val text: String, val canSkip: Boolean = false, val canChangeResponse: Boolean = true, val duration: Long = 0, val weight: Int = 0, val answerShortMinLength: Long? = 1, val answerLongMinLength: Long? = null, val options: List<HMSPollQuestionOption>? = null, val correctAnswer: HMSPollQuestionAnswer? = null, val negative: Boolean = false, val myResponses: MutableList<HmsPollAnswer> = mutableListOf())

Constructors

Link copied to clipboard
fun HMSPollQuestion(questionID: Int, type: HMSPollQuestionType, text: String, canSkip: Boolean = false, canChangeResponse: Boolean = true, duration: Long = 0, weight: Int = 0, answerShortMinLength: Long? = 1, answerLongMinLength: Long? = null, options: List<HMSPollQuestionOption>? = null, correctAnswer: HMSPollQuestionAnswer? = null, negative: Boolean = false, myResponses: MutableList<HmsPollAnswer> = mutableListOf())

Properties

Link copied to clipboard
@SerializedName(value = "answer_max_len")
val answerLongMinLength: Long? = null
Link copied to clipboard
@SerializedName(value = "answer_min_len")
val answerShortMinLength: Long? = 1
Link copied to clipboard
@SerializedName(value = "once")
val canChangeResponse: Boolean = true
Link copied to clipboard
@SerializedName(value = "skippable")
val canSkip: Boolean = false
Link copied to clipboard
@SerializedName(value = "answer")
val correctAnswer: HMSPollQuestionAnswer? = null
Link copied to clipboard
@SerializedName(value = "duration")
val duration: Long = 0
Link copied to clipboard

The responses provided by the current user for the question.

Link copied to clipboard
@SerializedName(value = "negative")
val negative: Boolean = false
Link copied to clipboard
@SerializedName(value = "options")
val options: List<HMSPollQuestionOption>? = null
Link copied to clipboard
@SerializedName(value = "index")
val questionID: Int
Link copied to clipboard
@SerializedName(value = "text")
val text: String
Link copied to clipboard
var total: Int = 0
Link copied to clipboard
@SerializedName(value = "type")
val type: HMSPollQuestionType
Link copied to clipboard
Link copied to clipboard
@SerializedName(value = "weight")
val weight: Int = 0