Expose “NodeIdentifier” field.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 19 Mar 2009 22:03:50 +0000 (23:03 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 19 Mar 2009 22:08:42 +0000 (23:08 +0100)
src/net/pterodactylus/fcp/PeerNote.java

index aeeeb1e..0340518 100644 (file)
@@ -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