Kit > healthstack.kit.task.survey.question.model > QuestionModel

QuestionModel

[androidJvm]
abstract class QuestionModel<R>(val id: String, val question: String, val explanation: String? = null, val drawableId: Int? = null, val type: QuestionModel.QuestionType, val skipLogics: List<SkipLogic>, answer: R? = null)

Constructors

QuestionModel

[androidJvm]
fun <R> QuestionModel(id: String, question: String, explanation: String? = null, drawableId: Int? = null, type: QuestionModel.QuestionType, skipLogics: List<SkipLogic>, answer: R? = null)

Types

Name Summary
QuestionType

[androidJvm]
enum QuestionType : Enum<QuestionModel.QuestionType>

Functions

Name Summary
getResponse

[androidJvm]
abstract fun getResponse(): R?

isCorrect

[androidJvm]
fun isCorrect(): Boolean

Properties

Name Summary
drawableId

[androidJvm]
val drawableId: Int? = null

explanation

[androidJvm]
val explanation: String? = null

id

[androidJvm]
val id: String

question

[androidJvm]
val question: String

skipLogics

[androidJvm]
val skipLogics: List<SkipLogic>

type

[androidJvm]
val type: QuestionModel.QuestionType

Inheritors

Name
ChoiceQuestionModel

DateTimeQuestionModel

ImageChoiceQuestionModel

MultiChoiceQuestionModel

RankingQuestionModel

TextInputQuestionModel