From 34d206d03d5e0bcd9cee9f345bed87cf6fba8f0e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 11 Jul 2015 11:37:10 +0200 Subject: [PATCH] Add constructor to set an identifier --- src/main/java/net/pterodactylus/fcp/AddPeer.java | 5 +++++ 1 file changed, 5 insertions(+) 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. -- 2.7.4