Whitespace and formatting fixes.
[jFCPlib.git] / src / net / pterodactylus / fcp / PeerNote.java
index aeeeb1e..61dca19 100644 (file)
@@ -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 <code>-1</code> if the type can
-        *         not be parsed
+        *
+        * @return The type of the peer note, or <code>-1</code> if the type can not
+        *         be parsed
         */
        public int getPeerNoteType() {
                return FcpUtils.safeParseInt(getField("PeerNoteType"));