2 * © 2008 INA Service GmbH
4 package net.pterodactylus.util.fcp;
7 * The “PeerNote” message contains a private note that has been entered for a
10 * @author <a href="mailto:dr@ina-germany.de">David Roden</a>
13 public class PeerNote extends BaseMessage {
15 /** The type for base64 encoded peer notes. */
16 public static final int TYPE_PRIVATE_PEER_NOTE = 1;
19 * Creates a “PeerNote” message that wraps the recevied message.
21 * @param receivedMessage
22 * The received message
24 PeerNote(FcpMessage receivedMessage) {
25 super(receivedMessage);
29 * Returns the base64-encoded note text.
31 * @return The note text
33 public String getNoteText() {
34 return getField("NoteText");
38 * Returns the type of the peer note.
40 * @return The type of the peer note, or <code>-1</code> if the type can
43 public int getPeerNoteType() {
44 return FcpUtils.safeParseInt(getField("PeerNoteType"));