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

EnergyData

data class EnergyData : SampleData

Sample data with information of energy consumed and burned during measurement period.

Properties

energyIn

val energyIn: Float

amount of consumed kcal

energyOut

val energyOut: Float

amount of burned kcal

timestampEnd

val timestampEnd: Long

End of the sample in UNIX-timestamp.

timestampStart

val timestampStart: Long

Beginning of the sample in UNIX-timestamp.

Extension Functions

getSampleDuration

fun SampleData.getSampleDuration(units: TimeUnit = TimeUnit.SECONDS): Long

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