Exercise

data class Exercise(val type: KHExerciseType, val startTime: Instant, val endTime: Instant) : KHRecord

Captures any exercise a user does. This can be common fitness exercise like running or different sports.

Each record needs a start time and end time. Records don't need to be back-to-back or directly after each other, there can be gaps in between.

Parameters

startTime

The start instant of the interval over which the value this record was captured

endTime

The end instant of the interval over which the value this record was captured

type

The type of exercise that the user is doing

Constructors

Link copied to clipboard
constructor(type: KHExerciseType, startTime: Instant, endTime: Instant)

Properties

Link copied to clipboard
val endTime: Instant
Link copied to clipboard
val startTime: Instant
Link copied to clipboard