Package-level declarations

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
class JournalEntryEvent(val id: String, val eventKindID: String, val eventName: String, val eventIcon: String, var rating: Int?)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class JournalEventWithRating(val eventType: JournalEventEntity, val rating: Int? = null, val id: String? = null)
Link copied to clipboard
@Serializable
data class ScreenTimeAggregate(val totalScreenTime: Double = Double.NaN, val socialScreenTime: Double = Double.NaN)

This data class holds information about total and social screen time.

Link copied to clipboard
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).

Link copied to clipboard
@JsonClass(generateAdapter = true)
@Serializable
data class TrendHolder(val difference2Weeks: Double = Double.NaN, val statistic2Weeks: Double = Double.NaN, val significance2Weeks: Double = Double.NaN, val difference6Weeks: Double = Double.NaN, val statistic6Weeks: Double = Double.NaN, val significance6Weeks: Double = Double.NaN, val difference1Year: Double = Double.NaN, val statistic1Year: Double = Double.NaN, val significance1Year: Double = Double.NaN)

Thi object contains 9 values. For each time resolution (short: 2 Weeks, medium: 6 Weeks, long: 1 Year) the trend has 3 values: (difference: value of the change, statistic: p-value, significance: significance of the change)