healbesdk / com.healbe.healbesdk.business_api.healthdata / HealthData / getEnergySummary

getEnergySummary

abstract fun getEnergySummary(daysBack: Int): Flowable<Container<EnergySummary>>

Returns Flowable that emits container with energy summary for day daysBack ago.

Parameters

daysBack - for how many days ago in relation to today information is needed (0 for today)

Return
Flowable that emits container with energy summary for day daysBack ago.

See Also

Container

EnergySummary

abstract fun getEnergySummary(from: Long, to: Long): Flowable<List<Container<EnergySummary>>>

Returns Flowable that emits list of containers with energy summaries for period from from to to.

Parameters

from - minimum UNIX-timestamp of energy summary

to - maximum UNIX-timestamp of energy summary

Return
Flowable that emits list of containers with energy summaries

See Also

com.healbe.healbesdk.utils.dateutil.dayStart

com.healbe.healbesdk.utils.dateutil.dayEnd

Container

EnergySummary