//kit/healthstack.kit.task.survey.question.model/MultiChoiceQuestionModel

MultiChoiceQuestionModel

[androidJvm]
open class MultiChoiceQuestionModel(id: String, query: String, explanation: String? = null, drawableId: Int? = null, answer: String? = null, skipLogics: List<SkipLogic> = emptyList(), val candidates: List<String>, tag: String) : QuestionModel<String>

Constructors

   
MultiChoiceQuestionModel [androidJvm]
fun MultiChoiceQuestionModel(id: String, query: String, explanation: String? = null, drawableId: Int? = null, answer: String? = null, skipLogics: List<SkipLogic> = emptyList(), candidates: List<String>, tag: String)

Types

Name Summary
ViewType [androidJvm]
enum ViewType : Enum<MultiChoiceQuestionModel.ViewType>

Functions

Name Summary
deselect [androidJvm]
fun deselect(index: Int)
getResponse [androidJvm]
open override fun getResponse(): String
isCorrect [androidJvm]
fun isCorrect(): Boolean
isSelected [androidJvm]
fun isSelected(index: Int): Boolean
select [androidJvm]
fun select(index: Int)

Properties

Name Summary
candidates [androidJvm]
val candidates: List<String>
drawableId [androidJvm]
val drawableId: Int?
explanation [androidJvm]
val explanation: String?
id [androidJvm]
val id: String
question [androidJvm]
val question: String
skipLogics [androidJvm]
val skipLogics: List<SkipLogic>
type [androidJvm]
val type: QuestionModel.QuestionType
viewType [androidJvm]
val viewType: MultiChoiceQuestionModel.ViewType