GetNotificationsUseCaseImpl

internal class GetNotificationsUseCaseImpl(connectionRepository: ConnectionRepository, messageRepository: MessageRepository, notificationEventsManager: NotificationEventsManager, incrementalSyncRepository: IncrementalSyncRepository, localNotificationMessageMapper: LocalNotificationMessageMapper = MapperProvider.localNotificationMessageMapper()) : GetNotificationsUseCase

Parameters

connectionRepository

connectionRepository for observing connectionRequests that user should be notified about

messageRepository

MessageRepository for getting Messages that user should be notified about

localNotificationMessageMapper

LocalNotificationMessageMapper for mapping PublicUser object into LocalNotificationMessageAuthor

Constructors

Link copied to clipboard
internal constructor(connectionRepository: ConnectionRepository, messageRepository: MessageRepository, notificationEventsManager: NotificationEventsManager, incrementalSyncRepository: IncrementalSyncRepository, localNotificationMessageMapper: LocalNotificationMessageMapper = MapperProvider.localNotificationMessageMapper())

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend operator override fun invoke(): <Error class: unknown class><List<<Error class: unknown class>>>

Operation to get all notifications, the Flow emits everytime when the list is changed