Add a db query to get all the Sessions.

This commit is contained in:
Benoit Marty
2023-03-29 15:40:34 +02:00
committed by Benoit Marty
parent 80fdd5f127
commit b2ce80da69
5 changed files with 16 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ interface SessionStore {
fun isLoggedIn(): Flow<Boolean>
suspend fun storeData(sessionData: SessionData)
suspend fun getSession(sessionId: String): SessionData?
suspend fun getAllSessions(): List<SessionData>
suspend fun getLatestSession(): SessionData?
suspend fun removeSession(sessionId: String)
}