healbesdk / com.healbe.healbesdk.business_api.healthdata.data.sleep / SleepSummary

SleepSummary

data class SleepSummary

Full summary about sleep.

Constructors

<init>

SleepSummary(sleepDuration: Int, quality: Int, efficiency: Int, awakeInfo: AwakeInfo?)

Full summary about sleep.

Properties

awakeInfo

val awakeInfo: AwakeInfo?

information about periods of awakening

efficiency

val efficiency: Int

sleep efficiency

quality

val quality: Int

sleep quality

sleepDuration

val sleepDuration: Int

duration of the sleep in minutes

Functions

getSleepDuration

fun getSleepDuration(units: TimeUnit = TimeUnit.MINUTES): Long

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