X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet%2Fpterodactylus%2Ffcp%2FPeerNote.java;h=61dca196973581c11c8b2c53c079e63bddd322e5;hb=c62dc5885567ae89db150776ac01fcc31b3120fe;hp=b35d95af2ac81a554f4faf4edbc5be2920b9ec81;hpb=64c2c9bd494f3ea9d1ae84f8d86827dea025bee6;p=jFCPlib.git
diff --git a/src/net/pterodactylus/fcp/PeerNote.java b/src/net/pterodactylus/fcp/PeerNote.java
index b35d95a..61dca19 100644
--- a/src/net/pterodactylus/fcp/PeerNote.java
+++ b/src/net/pterodactylus/fcp/PeerNote.java
@@ -22,8 +22,8 @@ package net.pterodactylus.fcp;
/**
* The âPeerNoteâ message contains a private note that has been entered for a
* darknet peer.
- *
- * @author David Roden
+ *
+ * @author David âBombeâ Roden <bombe@freenetproject.org>
*/
public class PeerNote extends BaseMessage {
@@ -32,7 +32,7 @@ public class PeerNote extends BaseMessage {
/**
* Creates a âPeerNoteâ message that wraps the recevied message.
- *
+ *
* @param receivedMessage
* The received message
*/
@@ -41,8 +41,17 @@ 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
*/
public String getNoteText() {
@@ -51,9 +60,9 @@ public class PeerNote extends BaseMessage {
/**
* Returns the type of the peer note.
- *
- * @return The type of the peer note, or -1
if the type can
- * not be parsed
+ *
+ * @return The type of the peer note, or -1
if the type can not
+ * be parsed
*/
public int getPeerNoteType() {
return FcpUtils.safeParseInt(getField("PeerNoteType"));