projects
/
jFCPlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add command to subscribe to USK updates
[jFCPlib.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
fcp
/
SubscribeUSK.java
diff --git
a/src/main/java/net/pterodactylus/fcp/SubscribeUSK.java
b/src/main/java/net/pterodactylus/fcp/SubscribeUSK.java
index
6a18333
..
b0c5e7e
100644
(file)
--- a/
src/main/java/net/pterodactylus/fcp/SubscribeUSK.java
+++ b/
src/main/java/net/pterodactylus/fcp/SubscribeUSK.java
@@
-26,20
+26,20
@@
package net.pterodactylus.fcp;
*/
public class SubscribeUSK extends FcpMessage {
*/
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");
super("SubscribeUSK");
- setField("URI", uri);
setField("Identifier", identifier);
}
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.
*
/**
* Sets whether updates for the USK are actively searched.
*