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

ChoiceQuestionModel

[androidJvm]
class ChoiceQuestionModel<R>(id: String, query: String, explanation: String? = null, drawableId: Int? = null, answer: R? = null, skipLogics: List<SkipLogic> = emptyList(), val candidates: List<R>, val viewType: ChoiceQuestionModel.ViewType = Radio) : QuestionModel<R>

Constructors

   
ChoiceQuestionModel [androidJvm]
fun <R> ChoiceQuestionModel(id: String, query: String, explanation: String? = null, drawableId: Int? = null, answer: R? = null, skipLogics: List<SkipLogic> = emptyList(), candidates: List<R>, viewType: ChoiceQuestionModel.ViewType = Radio)

Types

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

Functions

Name Summary
getResponse [androidJvm]
open override fun getResponse(): R?
isCorrect [androidJvm]
fun isCorrect(): Boolean

Properties

Name Summary
candidates [androidJvm]
val candidates: List<R>
drawableId [androidJvm]
val drawableId: Int?
explanation [androidJvm]
val explanation: String?
id [androidJvm]
val id: String
question [androidJvm]
val question: String
selection [androidJvm]
var selection: Int? = null
skipLogics [androidJvm]
val skipLogics: List<SkipLogic>
type [androidJvm]
val type: QuestionModel.QuestionType
viewType [androidJvm]
val viewType: ChoiceQuestionModel.ViewType