SignalSurveyLocalDataSource

Constructors

Link copied to clipboard
constructor(dbManager: DatabaseProvider, dispatchers: CoroutineDispatchers)

Functions

Link copied to clipboard
suspend fun closeSession(session: SurveySessionHandle, endedAt: Long)

Ends the session at endedAt. One that logged nothing is dropped, so the history holds only runs to show. Does nothing once another radio's database is active.

Link copied to clipboard
suspend fun deleteSession(sessionId: Long)
Link copied to clipboard
suspend fun insert(session: SurveySessionHandle, sample: SignalSampleEntity): Boolean

False, writing nothing, once session's database is no longer the active one.

Link copied to clipboard

The new session, or null when the database is shutting down.

Link copied to clipboard
fun samples(sessionId: Long): Flow<List<SignalSampleEntity>>
Link copied to clipboard
suspend fun samplesOnce(sessionId: Long): List<SignalSampleEntity>
Link copied to clipboard