/**
* 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 {
/**
* Creates a “PeerNote” message that wraps the recevied message.
- *
+ *
* @param receivedMessage
* The received message
*/
}
/**
+ * 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() {
/**
* 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"));