From: David ‘Bombe’ Roden Date: Mon, 6 Dec 2010 05:44:07 +0000 (+0100) Subject: Add methods to notify core listeners about removed posts and replies. X-Git-Tag: 0.3.2~10 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f30e07f1da82ff7f89bed87263a276505c37d518;p=Sone.git Add methods to notify core listeners about removed posts and replies. --- diff --git a/src/main/java/net/pterodactylus/sone/core/CoreListener.java b/src/main/java/net/pterodactylus/sone/core/CoreListener.java index 595d11a..950e890 100644 --- a/src/main/java/net/pterodactylus/sone/core/CoreListener.java +++ b/src/main/java/net/pterodactylus/sone/core/CoreListener.java @@ -95,4 +95,20 @@ public interface CoreListener extends EventListener { */ public void markReplyKnown(Reply reply); + /** + * Notifies a listener that the given post was removed. + * + * @param post + * The removed post + */ + public void postRemoved(Post post); + + /** + * Notifies a listener that the given reply was removed. + * + * @param reply + * The removed reply + */ + public void replyRemoved(Reply reply); + } diff --git a/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java b/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java index 0fd8b1a..7ba226b 100644 --- a/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java +++ b/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java @@ -145,4 +145,30 @@ public class CoreListenerManager extends AbstractListenerManager