mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-24 03:36:51 +00:00
refactor: simplify AppContentRepository initialization logic.
This commit is contained in:
@@ -2,8 +2,8 @@ package hu.bbara.purefin.core.data
|
||||
|
||||
import hu.bbara.purefin.core.model.Library
|
||||
import hu.bbara.purefin.core.model.Media
|
||||
import java.util.UUID
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
import java.util.UUID
|
||||
|
||||
interface HomeRepository {
|
||||
val libraries: StateFlow<List<Library>>
|
||||
@@ -11,6 +11,6 @@ interface HomeRepository {
|
||||
val continueWatching: StateFlow<List<Media>>
|
||||
val nextUp: StateFlow<List<Media>>
|
||||
val latestLibraryContent: StateFlow<Map<UUID, List<Media>>>
|
||||
suspend fun ensureReady()
|
||||
suspend fun refreshHomeData()
|
||||
fun ensureReady()
|
||||
fun refreshHomeData()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user