Exercise

data class Exercise(val id: Long, val name: String, val htmlUrl: String, val url: String, var submissionInfo: SubmissionInfo?, val submissionResults: MutableList<SubmissionResult>, val maxPoints: Int, val userPoints: Int, val maxSubmissions: Int, val bestSubmissionId: Long?, val difficulty: String = "", val isOptional: Boolean, val isSubmittable: Boolean, var isDetailsLoaded: Boolean = false)

Constructors

Link copied to clipboard
constructor(id: Long, name: String, htmlUrl: String, url: String, submissionInfo: SubmissionInfo?, submissionResults: MutableList<SubmissionResult>, maxPoints: Int, userPoints: Int, maxSubmissions: Int, bestSubmissionId: Long?, difficulty: String = "", isOptional: Boolean, isSubmittable: Boolean, isDetailsLoaded: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val url: String
Link copied to clipboard

Functions

Link copied to clipboard
fun addSubmissionResult(submissionResult: SubmissionResult)
Link copied to clipboard

Returns the best submission of this exercise (if one exists).

Link copied to clipboard

Returns true if assignment is completed.

Link copied to clipboard

Returns true if any of the submissions of this exercise has status WAITING.

Link copied to clipboard