bind<MarkPostKnownDuringFirstStartHandler>().asSingleton()
bind<SoneLockedOnStartupHandler>().asSingleton()
bind<NewSoneHandler>().asSingleton()
+ bind<NewRemotePostHandler>().asSingleton()
}
@Provides
@Provides
@Singleton
- fun getNewRemotePostHandler(notificationManager: NotificationManager, @Named("newRemotePost") newPostNotification: ListNotification<Post>) =
- NewRemotePostHandler(notificationManager, newPostNotification)
-
- @Provides
- @Singleton
@Named("newRemotePost")
fun getNewPostNotification(loaders: Loaders) =
ListNotification<Post>("new-post-notification", "posts", loaders.loadTemplate("/templates/notify/newPostNotification.html"), dismissable = false)