Points

class Points(exercises: Map<Long, List<Long>>, submissions: Map<Long, List<Long>>, bestSubmissions: Map<Long, Long>)

Construct an instance with the given maps.

Parameters

exercises

A map of exercise group IDs to a list of exercises for that exercise group.

submissions

A map of exercise IDs to a list of submission IDs for that exercise. The first element of the list should be the ID of the oldest submission and the last element should be the ID of the latest submission.

bestSubmissions

A map of exercise IDs to the IDs of the best submission for each exercise.

Constructors

Link copied to clipboard
constructor(exercises: Map<Long, List<Long>>, submissions: Map<Long, List<Long>>, bestSubmissions: Map<Long, Long>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun getExercises(exerciseGroupId: Long): List<Long>
Link copied to clipboard
fun getSubmissions(exerciseId: Long): List<Long>

Returns the amount of exercises.

Link copied to clipboard
Link copied to clipboard

Returns the amount of exercises.