X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FFirstStartHandler.kt;h=dc9c507c5aff9f23cb354268926a96a739ee5866;hp=c69884623b5ccce47554f3a87447b7b0eb6be585;hb=4af887c75667793c197b564f16b7e95b1f63cbc7;hpb=1b4f8c0f65eb4db3831585743b326d2588b36cef diff --git a/src/main/kotlin/net/pterodactylus/sone/web/notification/FirstStartHandler.kt b/src/main/kotlin/net/pterodactylus/sone/web/notification/FirstStartHandler.kt index c698846..dc9c507 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/notification/FirstStartHandler.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/notification/FirstStartHandler.kt @@ -20,14 +20,15 @@ package net.pterodactylus.sone.web.notification import com.google.common.eventbus.* import net.pterodactylus.sone.core.event.* import net.pterodactylus.util.notify.* +import javax.inject.* /** * Handles the notification shown on first start of Sone. */ -class FirstStartHandler(private val notificationManager: NotificationManager, private val notification: TemplateNotification) { +class FirstStartHandler @Inject constructor(private val notificationManager: NotificationManager, @Named("firstStart") private val notification: TemplateNotification) { @Subscribe - fun firstStart(firstStart: FirstStart) { + fun firstStart(@Suppress("UNUSED_PARAMETER") firstStart: FirstStart) { notificationManager.addNotification(notification) }