Add Maven project description.
[jFCPlib.git] / src / net / pterodactylus / fcp / PeerNote.java
index b35d95a..7b32207 100644 (file)
@@ -1,6 +1,5 @@
 /*
- * jSite2 - PeerNote.java -
- * Copyright © 2008 David Roden
+ * jFCPlib - PeerNote.java - Copyright © 2008 David Roden
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -22,8 +21,8 @@ package net.pterodactylus.fcp;
 /**
  * The “PeerNote” message contains a private note that has been entered for a
  * darknet peer.
- * 
- * @author <a href="mailto:dr@ina-germany.de">David Roden</a>
+ *
+ * @author David ‘Bombe’ Roden &lt;bombe@freenetproject.org&gt;
  */
 public class PeerNote extends BaseMessage {
 
@@ -32,7 +31,7 @@ public class PeerNote extends BaseMessage {
 
        /**
         * Creates a “PeerNote” message that wraps the recevied message.
-        * 
+        *
         * @param receivedMessage
         *            The received message
         */
@@ -41,8 +40,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 +59,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"));