X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FWebInterface.java;h=14bbcc4e05b5a3988d658c7cab20b1e317638911;hb=455d843a2d2c785a317085e085d4265988b3c0da;hp=68ba585fc35c6f2b9cbb58315407c020a89621ff;hpb=f3c7033028be33ed8b4bca8d67a2979a3cd7d18d;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 68ba585..14bbcc4 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -43,6 +43,7 @@ import net.pterodactylus.sone.core.event.MarkSoneKnownEvent; import net.pterodactylus.sone.core.event.NewPostFoundEvent; import net.pterodactylus.sone.core.event.NewPostReplyFoundEvent; import net.pterodactylus.sone.core.event.NewSoneFoundEvent; +import net.pterodactylus.sone.core.event.SoneRemovedEvent; import net.pterodactylus.sone.data.Album; import net.pterodactylus.sone.data.Image; import net.pterodactylus.sone.data.Post; @@ -785,7 +786,10 @@ public class WebInterface implements CoreListener { // /** - * {@inheritDoc} + * Notifies the web interface that a new {@link Sone} was found. + * + * @param newSoneFoundEvent + * The event */ @Subscribe public void newSoneFound(NewSoneFoundEvent newSoneFoundEvent) { @@ -796,7 +800,10 @@ public class WebInterface implements CoreListener { } /** - * {@inheritDoc} + * Notifies the web interface that a new {@link Post} was found. + * + * @param newPostFoundEvent + * The event */ @Subscribe public void newPostFound(NewPostFoundEvent newPostFoundEvent) { @@ -819,7 +826,10 @@ public class WebInterface implements CoreListener { } /** - * {@inheritDoc} + * Notifies the web interface that a new {@link PostReply} was found. + * + * @param newPostReplyFoundEvent + * The event */ @Subscribe public void newReplyFound(NewPostReplyFoundEvent newPostReplyFoundEvent) { @@ -842,7 +852,10 @@ public class WebInterface implements CoreListener { } /** - * {@inheritDoc} + * Notifies the web interface that a {@link Sone} was marked as known. + * + * @param markSoneKnownEvent + * The event */ @Subscribe public void markSoneKnown(MarkSoneKnownEvent markSoneKnownEvent) { @@ -850,7 +863,10 @@ public class WebInterface implements CoreListener { } /** - * {@inheritDoc} + * Notifies the web interface that a {@link Post} was marked as known. + * + * @param markPostKnownEvent + * The event */ @Subscribe public void markPostKnown(MarkPostKnownEvent markPostKnownEvent) { @@ -860,7 +876,10 @@ public class WebInterface implements CoreListener { } /** - * {@inheritDoc} + * Notifies the web interface that a {@link PostReply} was marked as known. + * + * @param markPostReplyKnownEvent + * The event */ @Subscribe public void markReplyKnown(MarkPostReplyKnownEvent markPostReplyKnownEvent) { @@ -869,18 +888,21 @@ public class WebInterface implements CoreListener { mentionNotification.remove(markPostReplyKnownEvent.postReply().getPost()); } - // - // CORELISTENER METHODS - // - /** - * {@inheritDoc} + * Notifies the web interface that a {@link Sone} was removed. + * + * @param soneRemovedEvent + * The event */ - @Override - public void soneRemoved(Sone sone) { - newSoneNotification.remove(sone); + @Subscribe + public void soneRemoved(SoneRemovedEvent soneRemovedEvent) { + newSoneNotification.remove(soneRemovedEvent.sone()); } + // + // CORELISTENER METHODS + // + /** * {@inheritDoc} */