Refactor search

This commit is contained in:
MM20
2024-07-17 23:27:00 +02:00
parent 5a28eb584e
commit c7804296d7
6 changed files with 351 additions and 207 deletions
@@ -4,5 +4,5 @@ import kotlinx.collections.immutable.ImmutableList
import kotlinx.coroutines.flow.Flow
interface SearchableRepository<T : Searchable> {
fun search(query: String, allowNetwork: Boolean): Flow<ImmutableList<T>>
fun search(query: String, allowNetwork: Boolean): Flow<List<T>>
}