healbesdk / com.healbe.healbesdk.business_api.healthdata.data.energy / EnergySummary

EnergySummary

data class EnergySummary

Full summary about consumed and burned kcal, about activities and nutrients during one day.

Properties

activityKcal

val activityKcal: Int

amount of kcal burned by activities

activityMinutes

val activityMinutes: Int

time in minutes spend by the user for activities

basalKcal

val basalKcal: Int

amount of kcal spent by basal metabolism

basalMinutes

val basalMinutes: Int

time in minutes spent by the user for basal metabolism

carbohydrates

val carbohydrates: Float

amount of carbohydrates consumed

distance

val distance: Int

distance in meters traveled by user

energyIn

val energyIn: Float

amount of kcal consumed

energyOut

val energyOut: Float

amount of burned kcal

fat

val fat: Float

amount of fat consumed

protein

val protein: Float

amount of proteins consumed

routineKcal

val routineKcal: Int

amount of kcal burned by routine activity

routineMins

val routineMins: Int

time in minutes spent by the user for routine activity

runningKcal

val runningKcal: Int

amount of kcal burned by running

runningMins

val runningMins: Int

time in minutes spent by the user for running

sittingKcal

val sittingKcal: Int

amount of kcal burned by sitting activity

sittingMins

val sittingMins: Int

time in minutes spent by the user for sitting activity

steps

val steps: Int

steps count traveled by user

timestamp

val timestamp: Timestamp

data is valid from day start to this UNIX-timestamp

walkingKcal

val walkingKcal: Int

amount of kcal burned by walking

walkingMins

val walkingMins: Int

time in minutes spent by the user for walking

Functions

getDistance

fun getDistance(units: DistanceUnits): Float

Returns distance traveled by the user in specified units.

getWearingDuration

fun getWearingDuration(units: TimeUnit = TimeUnit.SECONDS): Long

Returns wearing duration in specified units. Default units: TimeUnit.SECONDS.