X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FImageInsertHandler.kt;h=0d36de6a306abac76a3f0abab713c150f9c8b840;hp=ea11481c168c3dbc36a12b7847060c1b1d8b82c8;hb=6fd3d46cae8b06225c862a8b5d0a6aef35328e21;hpb=e6768e198b1644393e63947a0fc45f1c72ae474b diff --git a/src/main/kotlin/net/pterodactylus/sone/web/notification/ImageInsertHandler.kt b/src/main/kotlin/net/pterodactylus/sone/web/notification/ImageInsertHandler.kt index ea11481..0d36de6 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/notification/ImageInsertHandler.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/notification/ImageInsertHandler.kt @@ -22,6 +22,7 @@ import net.pterodactylus.sone.core.event.* import net.pterodactylus.sone.data.* import net.pterodactylus.sone.notify.* import net.pterodactylus.util.notify.* +import javax.inject.* /** * Notification handler for the various image-insert-related events. @@ -31,11 +32,11 @@ import net.pterodactylus.util.notify.* * @see ImageInsertFailedEvent * @see ImageInsertFinishedEvent */ -class ImageInsertHandler( +class ImageInsertHandler @Inject constructor( private val notificationManager: NotificationManager, - private val imageInsertingNotification: ListNotification, - private val imageFailedNotification: ListNotification, - private val imageInsertedNotification: ListNotification) { + @Named("imageInserting") private val imageInsertingNotification: ListNotification, + @Named("imageFailed") private val imageFailedNotification: ListNotification, + @Named("imageInserted") private val imageInsertedNotification: ListNotification) { @Subscribe fun imageInsertStarted(imageInsertStartedEvent: ImageInsertStartedEvent) {