From: David ‘Bombe’ Roden Date: Sat, 11 Jul 2015 09:37:10 +0000 (+0200) Subject: Add constructor to set an identifier X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=34d206d03d5e0bcd9cee9f345bed87cf6fba8f0e;p=jFCPlib.git Add constructor to set an identifier --- diff --git a/src/main/java/net/pterodactylus/fcp/AddPeer.java b/src/main/java/net/pterodactylus/fcp/AddPeer.java index e9ad80d..0aa899e 100644 --- a/src/main/java/net/pterodactylus/fcp/AddPeer.java +++ b/src/main/java/net/pterodactylus/fcp/AddPeer.java @@ -46,6 +46,11 @@ public class AddPeer extends FcpMessage { setField("File", file); } + public AddPeer(String identifier, String file) { + this(file); + setField("Identifier", identifier); + } + /** * Creates a new “AddPeer” request that reads the noderef of the peer from * the given URL.