Session database: add count query.
This commit is contained in:
parent
0061b625f1
commit
9070420860
5 changed files with 27 additions and 0 deletions
|
|
@ -67,6 +67,10 @@ class InMemorySessionStore(
|
|||
return sessionDataListFlow.value
|
||||
}
|
||||
|
||||
override suspend fun numberOfSessions(): Int {
|
||||
return sessionDataListFlow.value.size
|
||||
}
|
||||
|
||||
override suspend fun getLatestSession(): SessionData? {
|
||||
return sessionDataListFlow.value.firstOrNull()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue