BasalMetabolicRate

data class BasalMetabolicRate(val unit: KHEither<KHUnit.Power, KHUnit.Energy>, val value: Double, val time: Instant) : KHRecord

Captures the BMR of a user. Each record represents the energy a user would burn if at rest all day, based on their height and weight.

Parameters

unit

Measurement scale of this record. It is a disjoint union (named KHEither in this project) because Android and Apple use different units to represent this record but at the time of accessing its value in runtime, only one of these units will be available (not null) based on the current platform.

value

The value of this record

time

Time instant of the interval over which the value this record was captured

Constructors

Link copied to clipboard
constructor(unit: KHEither<KHUnit.Power, KHUnit.Energy>, value: Double, time: Instant)

Properties

Link copied to clipboard
val time: Instant
Link copied to clipboard
Link copied to clipboard