Add constructor that takes an identifier
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 14 Jul 2015 19:54:00 +0000 (21:54 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 14 Jul 2015 19:54:00 +0000 (21:54 +0200)
src/main/java/net/pterodactylus/fcp/GetConfig.java

index 230a790..3e381bf 100644 (file)
@@ -33,6 +33,11 @@ public class GetConfig extends FcpMessage {
                super("GetConfig");
        }
 
+       public GetConfig(String identifer) {
+               this();
+               setField("Identifier", identifer);
+       }
+
        /**
         * Sets whether the {@link ConfigData} result message shall include the
         * current values.