EventDataSource
internal class EventDataSource(notificationApi: NotificationApi, metadataDAO: MetadataDAO, eventDAO: EventDAO, currentClientId: CurrentClientIdProvider, selfUserId: UserId, clientRegistrationStorage: ClientRegistrationStorage, restartSlowSyncProcessForRecovery: RestartSlowSyncProcessForRecoveryUseCase, eventMapper: EventMapper = MapperProvider.eventMapper(selfUserId), logger: KaliumLogger) : EventRepository
Constructors
Link copied to clipboard
constructor(notificationApi: NotificationApi, metadataDAO: MetadataDAO, eventDAO: EventDAO, currentClientId: CurrentClientIdProvider, selfUserId: UserId, clientRegistrationStorage: ClientRegistrationStorage, restartSlowSyncProcessForRecovery: RestartSlowSyncProcessForRecoveryUseCase, eventMapper: EventMapper = MapperProvider.eventMapper(selfUserId), logger: KaliumLogger)
Functions
Link copied to clipboard
Performs an acknowledgment of the missed event after performing a slow sync.
Link copied to clipboard
Clears the last saved event ID.
Link copied to clipboard
Link copied to clipboard
Fetches the oldest available event ID from remote.
Link copied to clipboard
Retrieves the last saved event ID from the storage.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Parse events from an external JSON payload
Link copied to clipboard
Link copied to clipboard
open suspend override fun setEventsAsProcessed(eventIds: List<String>): Either<StorageFailure, Unit>
Link copied to clipboard
Link copied to clipboard
Updates the last saved event ID.