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

getAnxietyDataCount

abstract fun getAnxietyDataCount(nightsBack: Int): Single<Int>

Returns Single that emits count of anxiety at sleep data for night nightsBack ago.

Night starts at 21 o'clock.

For example if current time is June 2 21:00 than 1 nightsBack will return sleep from June 1 21:00 to June 2 12:00.

But if current time is June 2 20:00 than 1 nightsBack will return sleep from May 31 21:00 to June 1 12:00.

Parameters

nightsBack - for how many night ago in relation to today information is needed

Return
Single that emits count of anxiety at sleep data} for night nightsBack ago

See Also

AnxietyData