HydrationSummary

data class HydrationSummary(val date: LocalDate, val volumeMilliliters: Double, val entryCount: Int = 0)

Aggregated water intake for a single day, pulled from HealthKit HKQuantityTypeIdentifierDietaryWater on iOS or Health Connect HydrationRecord on Android.

Constructors

Link copied to clipboard
constructor(date: LocalDate, volumeMilliliters: Double, entryCount: Int = 0)

Properties

Link copied to clipboard
val date: LocalDate

The local calendar date these totals cover.

Link copied to clipboard

Number of discrete log entries that contributed to volumeMilliliters; 0 when nothing was logged.

Link copied to clipboard

Sum of recorded water entries for the day, in milliliters. 0.0 when no entries exist (rather than null, so UI doesn't have to special-case the "no data" branch); pair with entryCount to distinguish "logged 0 mL" from "never logged".