MultiChoiceQuestionDTO

data class MultiChoiceQuestionDTO(    val questionNumber: Int,     val question: String,     val options: Array<String>,     val indexOfCorrectOption: Int,     val markForQuestion: Int)

A DTO object for MultiChoiceQuestion.

Constructors

Link copied to clipboard
fun MultiChoiceQuestionDTO(    questionNumber: Int,     question: String,     options: Array<String>,     indexOfCorrectOption: Int,     markForQuestion: Int)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int

Properties

Link copied to clipboard
val indexOfCorrectOption: Int
Link copied to clipboard
val markForQuestion: Int
Link copied to clipboard
val options: Array<String>
Link copied to clipboard
val question: String
Link copied to clipboard
val questionNumber: Int

Extensions

Link copied to clipboard

Extension function used to convert an instance of MultiChoiceQuestionDTO to an instance of MultiChoiceQuestion.