X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Ffcp%2FPeerNote.java;h=7b322079e063c0fddd6bce02435eec3798febdc1;hb=dd605aee444057a874fabf7fb0045b8448b0d1cd;hp=f139973e799c3737816a2aa217d6581d05e3cb57;hpb=f553531be78d6d6d95dc152728f2b8d40242b57d;p=jFCPlib.git diff --git a/src/net/pterodactylus/fcp/PeerNote.java b/src/net/pterodactylus/fcp/PeerNote.java index f139973..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,9 +21,8 @@ package net.pterodactylus.fcp; /** * The “PeerNote” message contains a private note that has been entered for a * darknet peer. - * - * @author David Roden - * @version $Id$ + * + * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ public class PeerNote extends BaseMessage { @@ -33,7 +31,7 @@ public class PeerNote extends BaseMessage { /** * Creates a “PeerNote” message that wraps the recevied message. - * + * * @param receivedMessage * The received message */ @@ -42,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() { @@ -52,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"));