2 * © 2008 INA Service GmbH
4 package net.pterodactylus.util.fcp;
7 * The “ModifyPeerNote” command modifies a peer note.
9 * @author <a href="mailto:dr@ina-germany.de">David Roden</a>
12 public class ModifyPeerNote extends FcpMessage {
15 * Creates a new “ModifyPeerNote” request that changes peer note of the
16 * given type and node to the given text.
19 * @param nodeIdentifier
20 * The identifier of the node, i.e. name, identity, or IP address
23 * The base64-encoded text
25 * The type of the note to change, possible values are only
26 * {@link PeerNote#TYPE_PRIVATE_PEER_NOTE} at the moment
28 public ModifyPeerNote(String nodeIdentifier, String noteText, int peerNoteType) {
30 setField("NodeIdentifier", nodeIdentifier);
31 setField("NoteText", noteText);
32 setField("PeerNoteType", String.valueOf(peerNoteType));