Add command to subscribe to USK updates
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / SubscribeUSK.java
index 6a18333..b0c5e7e 100644 (file)
@@ -26,20 +26,20 @@ package net.pterodactylus.fcp;
  */
 public class SubscribeUSK extends FcpMessage {
 
-       /**
-        * Creates a new “SubscribeUSK” message.
-        *
-        * @param uri
-        *            The URI to watch for changes
-        * @param identifier
-        *            The identifier of the request
-        */
-       public SubscribeUSK(String uri, String identifier) {
+       public SubscribeUSK(String identifier) {
                super("SubscribeUSK");
-               setField("URI", uri);
                setField("Identifier", identifier);
        }
 
+       public SubscribeUSK(String uri, String identifier) {
+               this(identifier);
+               setField("URI", uri);
+       }
+
+       public void setUri(String uri) {
+               setField("URI", uri);
+       }
+
        /**
         * Sets whether updates for the USK are actively searched.
         *