SLEEP_SUMMARY

data object SLEEP_SUMMARY : Metric<SleepSummaryEntity, SleepSummary>

A series of detailed information for each night detected. In particular this series gives information about bed time, wake up time and interruptions of sleep. See com.quantactions.sdk.data.model.SleepSummary for more information.

Functions

Link copied to clipboard
Link copied to clipboard
open override fun getMetric(mvpDao: MVPDao): Flow<List<SleepSummaryEntity>>
Link copied to clipboard
open override fun getReferencePopulationRange(basicInfo: BasicInfo): Range

Use this function to retrieve the reference population values for the current user. You need to provide the BasicInfo that you can obtain from QA.basicInfo.

Link copied to clipboard
open override fun getStat(apiService: ApiService, identityId: String, participationId: String, from: String, to: String): Flow<ApiResponse<List<SleepSummaryEntity>>>
Link copied to clipboard
open override fun insertOrUpdateMetric(mvpDao: MVPDao, statistics: List<SleepSummaryEntity>)
Link copied to clipboard
open override fun prepareReturnData(values: List<SleepSummaryEntity>, from: Long, to: Long): TimeSeries<SleepSummary>
Link copied to clipboard