X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet%2Fpterodactylus%2Ffcp%2FListPeers.java;h=00b7162849f86f1485241d70e71824471ad38192;hb=5a6f76df163e8fb00a36bb14088cab8f36c94f13;hp=3ae363778698b52f0bf6741f5ac972897be198f5;hpb=f553531be78d6d6d95dc152728f2b8d40242b57d;p=jFCPlib.git
diff --git a/src/net/pterodactylus/fcp/ListPeers.java b/src/net/pterodactylus/fcp/ListPeers.java
index 3ae3637..00b7162 100644
--- a/src/net/pterodactylus/fcp/ListPeers.java
+++ b/src/net/pterodactylus/fcp/ListPeers.java
@@ -23,21 +23,25 @@ package net.pterodactylus.fcp;
* The âListPeerâ requests asks the node for a list of all peers it has.
*
* @author David âBombeâ Roden <bombe@freenetproject.org>
- * @version $Id$
*/
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 +49,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));
}