X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Ffcp%2FPeerNote.java;h=7b322079e063c0fddd6bce02435eec3798febdc1;hb=dd605aee444057a874fabf7fb0045b8448b0d1cd;hp=aeeeb1e2fb05aad75b02f31bdfa5b5e67d6ee9db;hpb=99e3619bcf2e4762678d6c8bd24da08bc87b7190;p=jFCPlib.git diff --git a/src/net/pterodactylus/fcp/PeerNote.java b/src/net/pterodactylus/fcp/PeerNote.java index aeeeb1e..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,7 +21,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 +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"));