mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3634 Notifications | Handle pushKeyUpdates and store (#2379)
This commit is contained in:
parent
c0ba062b81
commit
1ef93d72db
8 changed files with 619 additions and 0 deletions
|
@ -0,0 +1,20 @@
|
|||
package com.anytypeio.anytype.data.auth.event
|
||||
|
||||
import com.anytypeio.anytype.core_models.chats.PushKeyUpdate
|
||||
import com.anytypeio.anytype.domain.chats.PushKeyChannel
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
interface PushKeyRemoteChannel {
|
||||
fun start()
|
||||
fun stop()
|
||||
fun observe(): Flow<PushKeyUpdate>
|
||||
}
|
||||
|
||||
class PushKeyDataChannel(
|
||||
private val channel: PushKeyRemoteChannel
|
||||
) : PushKeyChannel {
|
||||
|
||||
override fun observe(): Flow<PushKeyUpdate> {
|
||||
return channel.observe()
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue