From: David ‘Bombe’ Roden Date: Fri, 15 Oct 2010 04:38:16 +0000 (+0200) Subject: Add method to add remote Sones for watching. X-Git-Tag: 0.1-RC1~348 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=20673d9e01a985df985690090b5e5cdb05f25d01 Add method to add remote Sones for watching. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 3c3a659..ecebbe8 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -160,6 +160,17 @@ public class Core extends AbstractService { } /** + * Adds a remote Sone so that it is watched for updates. + * + * @param sone + * The sone to watch + */ + public void addRemoteSone(Sone sone) { + Sone updatedSone = soneCache.put(sone.getId(), sone); + soneDownloader.addSone(updatedSone); + } + + /** * Creates a new Sone at a random location. * * @param name