NeuroDataImplementationFlow

class NeuroDataImplementationFlow(sleepData: SleepData, dispatcher: CoroutineDispatcher = Dispatchers.IO) : NeuroDataFlow

Constructors

Link copied to clipboard
fun NeuroDataImplementationFlow(sleepData: SleepData, dispatcher: CoroutineDispatcher = Dispatchers.IO)

Functions

Link copied to clipboard
open override fun observeLastNeuroData(): Flow<NeuroData>

Returns Flow that emits last bet data NeuroData

Link copied to clipboard
open override fun observeLastTimestamp(): Flow<Timestamp>

Returns Flow that emits UNIX-timestamp of last NeuroData. If there is no data then 0 will be emitted.

Link copied to clipboard
open override fun observeNeuroData(daysBack: Int): Flow<List<NeuroData>>

Returns Flow that emits list of bet NeuroData for day daysBack ago.

Link copied to clipboard
open override fun observeNeuroSummary(daysBack: Int): Flow<Container<NeuroSummary>>

Returns Flow that emits container with bet summary for day daysBack ago.