PowerRecord.Sample

class PowerRecord.Sample


Represents a single measurement of power. For example, using a power meter when exercising on a stationary bike.

See also
PowerRecord

Summary

Public constructors

Sample(time: Instant, power: Power)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Power

Power generated, in Power unit.

Instant

The point in time when the measurement was taken.

Public constructors

Sample

Added in 1.1.0-alpha07
Sample(time: Instant, power: Power)
Parameters
time: Instant

The point in time when the measurement was taken.

power: Power

Power generated, in Power unit. Valid range: 0-100000 Watts.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

power

Added in 1.1.0-alpha07
val powerPower

Power generated, in Power unit. Valid range: 0-100000 Watts.

time

Added in 1.1.0-alpha07
val timeInstant

The point in time when the measurement was taken.