SleepSummary

data class SleepSummary(val sleepStart: ZonedDateTime = ZonedDateTimePlaceholder, val sleepEnd: ZonedDateTime = ZonedDateTimePlaceholder, val interruptionsStart: List<ZonedDateTime> = listOf(), val interruptionsEnd: List<ZonedDateTime> = listOf(), val interruptionsNumberOfTaps: List<Int> = listOf())

This data class hold detailed information about a sleep session (or sleep episode). See also com.quantactions.sdk.Metric.SLEEP_SUMMARY for a Time series of these episodes (generally one per day/night).

Constructors

Link copied to clipboard
constructor(sleepStart: ZonedDateTime = ZonedDateTimePlaceholder, sleepEnd: ZonedDateTime = ZonedDateTimePlaceholder, interruptionsStart: List<ZonedDateTime> = listOf(), interruptionsEnd: List<ZonedDateTime> = listOf(), interruptionsNumberOfTaps: List<Int> = listOf())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

list of zoned date times of the end on interruptions of the sleep episode

Link copied to clipboard

number of taps in each sleep interruption

Link copied to clipboard

list of zoned date times of the beginning on interruptions of the sleep episode

Link copied to clipboard

zoned date time of the wake up time

Link copied to clipboard

zoned date time of the bed time

Functions

Link copied to clipboard

Checks if the sleep episode is empty and thus just a placeholder

Link copied to clipboard
fun serialize(): SerializableSleepSummary