X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Ffcp%2FListPeers.java;h=acd2b1f1a68e5c842281199c26ced4dfc922d038;hb=60fa4ea6401f9cb7b3615f81526fda8212ace6c8;hp=3ae363778698b52f0bf6741f5ac972897be198f5;hpb=33e57ae1719a87ba663e1f640db264c8c698a8c4;p=jFCPlib.git diff --git a/src/net/pterodactylus/fcp/ListPeers.java b/src/net/pterodactylus/fcp/ListPeers.java index 3ae3637..acd2b1f 100644 --- a/src/net/pterodactylus/fcp/ListPeers.java +++ b/src/net/pterodactylus/fcp/ListPeers.java @@ -30,14 +30,19 @@ public class ListPeers extends FcpMessage { /** * Creates a new “ListPeers” request that only includes basic data of the * peers. + * + * @param identifier + * The identifier of the request */ - public ListPeers() { - this(false, false); + public ListPeers(String identifier) { + this(identifier, false, false); } /** * Creates a new “ListPeers” request that includes wanted data of the peers. * + * @param identifier + * The identifier of the request * @param withMetadata * If true metadata of the peers is included in * the reply @@ -45,8 +50,9 @@ public class ListPeers extends FcpMessage { * if true volatile data of the peers is included * in the reply */ - public ListPeers(boolean withMetadata, boolean withVolatile) { + public ListPeers(String identifier, boolean withMetadata, boolean withVolatile) { super("ListPeers"); + setField("Identifier", identifier); setField("WithMetadata", String.valueOf(withMetadata)); setField("WithVolatile", String.valueOf(withVolatile)); }