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:
parent
00afad8d9e
commit
4b40bf9f6e
28 changed files with 792 additions and 308 deletions
|
@ -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)
|
||||
}
|
|
@ -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>>
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue