From: David ‘Bombe’ Roden <bombe@freenetproject.org>
Date: Thu, 19 Mar 2009 22:03:50 +0000 (+0100)
Subject: Expose “NodeIdentifier” field.
X-Git-Tag: v0.1.1~99
X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bf0b6fe3af98f1c31895190bc54d017b623acd2e;p=jFCPlib.git

Expose “NodeIdentifier” field.
---

diff --git a/src/net/pterodactylus/fcp/PeerNote.java b/src/net/pterodactylus/fcp/PeerNote.java
index aeeeb1e..0340518 100644
--- a/src/net/pterodactylus/fcp/PeerNote.java
+++ b/src/net/pterodactylus/fcp/PeerNote.java
@@ -41,6 +41,15 @@ public class PeerNote extends BaseMessage {
 	}
 
 	/**
+	 * Returns the identifier of the node this note belongs to.
+	 *
+	 * @return The note’s node’s identifier
+	 */
+	public String getNodeIdentifier() {
+		return getField("NodeIdentifier");
+	}
+
+	/**
 	 * Returns the base64-encoded note text.
 	 * 
 	 * @return The note text