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

RankingQuestionModel

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

Constructors

RankingQuestionModel

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

Functions

Name Summary
getResponse

[androidJvm]
open override fun getResponse(): String

isCorrect

[androidJvm]
fun isCorrect(): Boolean

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

selection

[androidJvm]
var selection: String

skipLogics

[androidJvm]
val skipLogics: List<SkipLogic>

type

[androidJvm]
val type: QuestionModel.QuestionType