User Answers
data class UserAnswers( val associatedWorkBookId: String, val answers: Map<MultiChoiceQuestion, IndexOfChosenOption>, val marksObtainedForWorkBook: Int)
Content copied to clipboard
A class that models the answers that are chosen by the user for a particular WorkBook.
Parameters
associated Work Book Id
the id of the associated WorkBook.
answers
a map that contains the IndexOfChosenOption for each MultiChoiceQuestion.
marks Obtained For Work Book
indicates the total marks obtained for the WorkBook with the associatedWorkBookId.
Constructors
Link copied to clipboard
fun UserAnswers( associatedWorkBookId: String, answers: Map<MultiChoiceQuestion, IndexOfChosenOption>, marksObtainedForWorkBook: Int)
Content copied to clipboard
Properties
Extensions
Link copied to clipboard
A converter method that is used to convert an instance of UserAnswers to an instance of UserAnswersDTO.