StickyEventStore

class StickyEventStore(stickyEventRepository: StickyEventRepository, tm: RepositoryTransactionManager, contentMappings: EventContentSerializerMappings, config: MatrixClientConfiguration, statisticCollector: ObservableCacheStatisticCollector, storeScope: CoroutineScope, clock: Clock) : Store

Constructors

Link copied to clipboard
constructor(stickyEventRepository: StickyEventRepository, tm: RepositoryTransactionManager, contentMappings: EventContentSerializerMappings, config: MatrixClientConfiguration, statisticCollector: ObservableCacheStatisticCollector, storeScope: CoroutineScope, clock: Clock)

Functions

Link copied to clipboard
open suspend override fun clearCache()

Only deletes everything, that can be fetched from server.

Link copied to clipboard
open suspend override fun deleteAll()

Deletes everything.

Link copied to clipboard
suspend fun deleteByEventId(roomId: RoomId, eventId: EventId)
Link copied to clipboard
suspend fun deleteByRoomId(roomId: RoomId)
Link copied to clipboard
suspend fun deleteInvalid()
Link copied to clipboard
fun <C : StickyEventContent> get(roomId: RoomId, eventContentClass: KClass<C>): Flow<Map<Pair<UserId, String?>, Flow<StoredStickyEvent<C>?>>>
Link copied to clipboard
inline fun <C : StickyEventContent> StickyEventStore.get(roomId: RoomId): Flow<Map<Pair<UserId, String?>, Flow<StoredStickyEvent<C>?>>>
Link copied to clipboard
fun <C : StickyEventContent> getBySenderAndStickyKey(roomId: RoomId, eventContentClass: KClass<C>, sender: UserId, stickyKey: String?): Flow<StoredStickyEvent<C>?>
Link copied to clipboard
inline fun <C : StickyEventContent> StickyEventStore.getBySenderAndStickyKey(roomId: RoomId, sender: UserId, stateKey: String? = null): Flow<StoredStickyEvent<C>?>
Link copied to clipboard
open suspend fun init(coroutineScope: CoroutineScope)
Link copied to clipboard
suspend fun save(storedStickyEvent: StoredStickyEvent<StickyEventContent>)