X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Ffcp%2FPeerNote.java;h=7b322079e063c0fddd6bce02435eec3798febdc1;hb=dd605aee444057a874fabf7fb0045b8448b0d1cd;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..7b32207 100644
--- a/src/net/pterodactylus/fcp/PeerNote.java
+++ b/src/net/pterodactylus/fcp/PeerNote.java
@@ -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 David Roden
+ *
+ * @author David âBombeâ Roden <bombe@freenetproject.org>
*/
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 -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"));