X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Ffcp%2FPeerNote.java;h=61dca196973581c11c8b2c53c079e63bddd322e5;hb=989ae4b49892ef16a846164466636c7ca091fbbe;hp=aeeeb1e2fb05aad75b02f31bdfa5b5e67d6ee9db;hpb=99e3619bcf2e4762678d6c8bd24da08bc87b7190;p=jFCPlib.git
diff --git a/src/net/pterodactylus/fcp/PeerNote.java b/src/net/pterodactylus/fcp/PeerNote.java
index aeeeb1e..61dca19 100644
--- a/src/net/pterodactylus/fcp/PeerNote.java
+++ b/src/net/pterodactylus/fcp/PeerNote.java
@@ -22,7 +22,7 @@ package net.pterodactylus.fcp;
/**
* The âPeerNoteâ message contains a private note that has been entered for a
* darknet peer.
- *
+ *
* @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"));