mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-12 12:08:56 +01:00
Move more things to domain module
This commit is contained in:
@@ -37,7 +37,7 @@ class SourceManager(
|
||||
private val stubSourcesMap = ConcurrentHashMap<Long, StubSource>()
|
||||
|
||||
val catalogueSources: Flow<List<CatalogueSource>> = sourcesMapFlow.map { it.values.filterIsInstance<CatalogueSource>() }
|
||||
val onlineSources: Flow<List<HttpSource>> = catalogueSources.map { sources -> sources.filterIsInstance<HttpSource>() }
|
||||
val onlineSources: Flow<List<HttpSource>> = catalogueSources.map { it.filterIsInstance<HttpSource>() }
|
||||
|
||||
init {
|
||||
scope.launch {
|
||||
@@ -108,7 +108,7 @@ class SourceManager(
|
||||
}
|
||||
|
||||
@Suppress("OverridingDeprecatedMember")
|
||||
open inner class StubSource(private val sourceData: SourceData) : Source {
|
||||
inner class StubSource(private val sourceData: SourceData) : Source {
|
||||
|
||||
override val id: Long = sourceData.id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user