Expose lots of constructors and accessors
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / ListPeer.java
index f16f385..2984e6c 100644 (file)
@@ -27,15 +27,22 @@ public class ListPeer extends FcpMessage {
 
        /**
         * Creates a new “ListPeer” request that returns information about the node
-        * specified by <code>nodeIdentifier</code>. <code>nodeIdentifier</code> can
-        * be of several formats: The node’s name, its identity, or its IP address
-        * and port (connection with a ‘:’).
+        * specified by <code>nodeIdentifier</code>. <code>nodeIdentifier</code>
+        * can be of several formats: The node’s name, its identity, or its IP
+        * address and port (connection with a ‘:’).
         *
         * @param nodeIdentifier
         *            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);
        }