healbesdk / com.healbe.healbesdk.business_api.healthdata.data.water / HydrationData

HydrationData

data class HydrationData : SampleData

Sample data with information of hydration during measurement period.

Properties

calculating

val calculating: Boolean

hydration module was adjusted to user during measurement period

hydrationLevel

val hydrationLevel: Int

average hydration level during measurement period

timestampEnd

val timestampEnd: Long

End of the sample in UNIX-timestamp.

timestampStart

val timestampStart: Long

Beginning of the sample in UNIX-timestamp.

Companion Object Properties

EMPTY

val EMPTY: HydrationData

Value for no data state

MAX_LEVEL

const val MAX_LEVEL: Float

Maximum hydration value

MIN_LEVEL

const val MIN_LEVEL: Float

Minimum hydration value

Extension Functions

getSampleDuration

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

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