Add constructor that takes an identifier
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 15 Jul 2015 05:13:34 +0000 (07:13 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 15 Jul 2015 05:13:34 +0000 (07:13 +0200)
src/main/java/net/pterodactylus/fcp/ModifyConfig.java

index 412b818..687ee16 100644 (file)
@@ -32,6 +32,11 @@ public class ModifyConfig extends FcpMessage {
                super("ModifyConfig");
        }
 
+       public ModifyConfig(String identifier) {
+               this();
+               setField("Identifier", identifier);
+       }
+
        /**
         * Sets the option with the given name to the given value.
         *