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
open String

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-alpha10
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

toString

open fun toString(): String

Public properties

power

Added in 1.1.0-alpha10
val powerPower

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

time

Added in 1.1.0-alpha10
val timeInstant

The point in time when the measurement was taken.