Expose lots of constructors and accessors
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / ModifyPeerNote.java
index 6fcc088..637b5ec 100644 (file)
@@ -25,20 +25,13 @@ package net.pterodactylus.fcp;
  */
 public class ModifyPeerNote extends FcpMessage {
 
-       /**
-        * Creates a new “ModifyPeerNote” request that changes peer note of the
-        * given type and node to the given text.
-        *
-        * @see PeerNote
-        * @param nodeIdentifier
-        *            The identifier of the node, i.e. name, identity, or IP
-        *            address and port
-        * @param noteText
-        *            The base64-encoded text
-        * @param peerNoteType
-        *            The type of the note to change, possible values are only
-        *            {@link PeerNote#TYPE_PRIVATE_PEER_NOTE} at the moment
-        */
+       public ModifyPeerNote(String identifier, String nodeIdentifier) {
+               super("ModifyPeerNote");
+               setField("Identifier", identifier);
+               setField("NodeIdentifier", nodeIdentifier);
+       }
+
+       @Deprecated
        public ModifyPeerNote(String nodeIdentifier, String noteText, int peerNoteType) {
                super("ModifyPeer");
                setField("NodeIdentifier", nodeIdentifier);
@@ -46,4 +39,12 @@ public class ModifyPeerNote extends FcpMessage {
                setField("PeerNoteType", String.valueOf(peerNoteType));
        }
 
+       public void setNoteText(String noteText) {
+               setField("NoteText", noteText);
+       }
+
+       public void setPeerNoteType(PeerNoteType peerNoteType) {
+               setField("PeerNoteType", peerNoteType.toString());
+       }
+
 }