NeuroDataFlow

interface NeuroDataFlow

Flow interface for retrieving measurements about bet.

Functions

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

Returns Flow that emits last bet data NeuroData

Link copied to clipboard
abstract 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
abstract fun observeNeuroData(daysBack: Int): Flow<List<NeuroData>>

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

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

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