InMemoryRoomStateRepository

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val content: MutableStateFlow<Map<RoomStateRepositoryKey, Map<String, ClientEvent.StateBaseEvent<*>>>>

Functions

Link copied to clipboard
abstract suspend fun delete(firstKey: RoomStateRepositoryKey, secondKey: String)
Link copied to clipboard
abstract suspend fun deleteAll()
Link copied to clipboard
open suspend override fun deleteByRoomId(roomId: RoomId)
Link copied to clipboard
abstract suspend fun get(firstKey: RoomStateRepositoryKey): Map<String, ClientEvent.StateBaseEvent<*>>
abstract suspend fun get(firstKey: RoomStateRepositoryKey, secondKey: String): ClientEvent.StateBaseEvent<*>?
Link copied to clipboard
open suspend override fun getByRooms(roomIds: Set<RoomId>, type: String, stateKey: String): List<ClientEvent.StateBaseEvent<*>>
Link copied to clipboard
abstract suspend fun save(firstKey: RoomStateRepositoryKey, secondKey: String, value: ClientEvent.StateBaseEvent<*>)
Link copied to clipboard
open override fun serializeKey(firstKey: RoomStateRepositoryKey, secondKey: String): String