From: David ‘Bombe’ Roden Date: Sun, 14 Nov 2010 19:44:05 +0000 (+0100) Subject: Add method that signals when a Sone is marked as known. X-Git-Tag: 0.3-RC1~66 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0830c827254de6cd862619f3ddf8c42bad145f19;p=Sone.git Add method that signals when a Sone is marked as known. --- diff --git a/src/main/java/net/pterodactylus/sone/core/CoreListener.java b/src/main/java/net/pterodactylus/sone/core/CoreListener.java index 2547e63..f8278ed 100644 --- a/src/main/java/net/pterodactylus/sone/core/CoreListener.java +++ b/src/main/java/net/pterodactylus/sone/core/CoreListener.java @@ -55,4 +55,12 @@ public interface CoreListener extends EventListener { */ public void newReplyFound(Reply reply); + /** + * Notifies a listener that the given Sone is now marked as known. + * + * @param sone + * The known Sone + */ + public void markSoneKnown(Sone sone); + } diff --git a/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java b/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java index 84dc5f0..f226723 100644 --- a/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java +++ b/src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java @@ -82,4 +82,17 @@ public class CoreListenerManager extends AbstractListenerManager