UserAnswersDTO

data class UserAnswersDTO(    val associatedWorkBookId: String,     val answersDetailsMap: List<Map<String, String>>,     val marksObtainedForWorkBook: String)

A DTO object for UserAnswers.

Parameters

associatedWorkBookId

the id of the workbook associated with the UserAnswers object.

answersDetailsMap

a map with custom objects as keys are not supported. Only strings are supported. Therefore, it is not possible to use Map for answers. To accommodate for that, a list of maps are used to store the details of the each answer. A map in the list consists of the details of a particular mcq question.

Constructors

Link copied to clipboard
fun UserAnswersDTO(    associatedWorkBookId: String,     answersDetailsMap: List<Map<String, String>>,     marksObtainedForWorkBook: String)

Properties

Link copied to clipboard
val answersDetailsMap: List<Map<String, String>>
Link copied to clipboard
val associatedWorkBookId: String
Link copied to clipboard
val marksObtainedForWorkBook: String