Expose lots of constructors and accessors
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / ListPeer.java
index e96a389..2984e6c 100644 (file)
@@ -35,7 +35,14 @@ public class ListPeer extends FcpMessage {
         *            The identifier of the node to get details about
         */
        public ListPeer(String nodeIdentifier) {
+               this(null, nodeIdentifier);
+       }
+
+       public ListPeer(String identifier, String nodeIdentifier) {
                super("ListPeer");
+               if (identifier != null) {
+                       setField("Identifier", identifier);
+               }
                setField("NodeIdentifier", nodeIdentifier);
        }