package net.pterodactylus.sone.web.notification
-import com.google.common.eventbus.*
-import net.pterodactylus.sone.main.*
-import net.pterodactylus.util.notify.*
import javax.inject.*
/**
- * Handler for notifications that can create notifications and register them with an event bus.
+ * Container that causes notification handlers to be created and (more importantly) registered
+ * on creation with the event bus.
*/
-@Suppress("UnstableApiUsage")
-class NotificationHandler @Inject constructor(private val eventBus: EventBus, private val loaders: Loaders, private val notificationManager: NotificationManager) {
-
- fun start() {
- SoneLockedOnStartupHandler(notificationManager, loaders.loadTemplate("/templates/notify/soneLockedOnStartupNotification.html"))
- .also(eventBus::register)
- }
-
-}
+@Suppress("unused")
+class NotificationHandler @Inject constructor(
+ val markPostKnownDuringFirstStartHandler: MarkPostKnownDuringFirstStartHandler,
+ val newSoneHandler: NewSoneHandler,
+ val newRemotePostHandler: NewRemotePostHandler,
+ val soneLockedOnStartupHandler: SoneLockedOnStartupHandler,
+ val soneLockedHandler: SoneLockedHandler
+)