From 806fe50f92bfb973202e10d6e2dff73e520684f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 25 Mar 2009 00:31:37 +0100 Subject: [PATCH] =?utf8?q?Add=20accessor=20for=20=E2=80=9Cseed=E2=80=9D=20?= =?utf8?q?property.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/net/pterodactylus/fcp/Peer.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/net/pterodactylus/fcp/Peer.java b/src/net/pterodactylus/fcp/Peer.java index 1fa13e3..aec2959 100644 --- a/src/net/pterodactylus/fcp/Peer.java +++ b/src/net/pterodactylus/fcp/Peer.java @@ -92,6 +92,16 @@ public class Peer extends BaseMessage { } /** + * Returns whether this peer is a seed. + * + * @return true if the peer is a seed, false + * otherwise + */ + public boolean isSeed() { + return Boolean.valueOf(getField("seed")); + } + + /** * Returns the “y” part of the peer’s public DSA key. * * @return The public DSA key -- 2.7.4