1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

Refact | Profile on dashboard with new subscription mechanism (#2051)

This commit is contained in:
Evgenii Kozlov 2022-01-20 17:07:33 +03:00 committed by GitHub
parent 00afad8d9e
commit 4b40bf9f6e
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 792 additions and 308 deletions

View file

@ -0,0 +1,10 @@
package com.anytypeio.anytype.data.auth.event
import com.anytypeio.anytype.core_models.Id
import com.anytypeio.anytype.domain.search.SubscriptionEventChannel
class SubscriptionDataChannel(
private val remote: SubscriptionEventRemoteChannel
) : SubscriptionEventChannel {
override fun subscribe(subscriptions: List<Id>) = remote.subscribe(subscriptions)
}

View file

@ -0,0 +1,9 @@
package com.anytypeio.anytype.data.auth.event
import com.anytypeio.anytype.core_models.Id
import com.anytypeio.anytype.core_models.SubscriptionEvent
import kotlinx.coroutines.flow.Flow
interface SubscriptionEventRemoteChannel {
fun subscribe(subscriptions: List<Id>): Flow<List<SubscriptionEvent>>
}