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

ImageChoiceQuestionModel

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

Constructors

ImageChoiceQuestionModel

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

Types

Name Summary
ViewType

[androidJvm]
enum ViewType : Enum<ImageChoiceQuestionModel.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

isMulti

[androidJvm]
val isMulti: Boolean

labels

[androidJvm]
val labels: List<String>? = null

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: ImageChoiceQuestionModel.ViewType