implement node addition and removal events
[jSite2.git] / src / net / pterodactylus / util / fcp / ListPeers.java
1 /**
2  * © 2008 INA Service GmbH
3  */
4 package net.pterodactylus.util.fcp;
5
6
7 /**
8  * The “ListPeer” requests asks the node for a list of all peers it has.
9  * 
10  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
11  * @version $Id$
12  */
13 public class ListPeers extends FcpMessage {
14
15         /**
16          * Creates a new “ListPeers” request that only includes basic data of the
17          * peers.
18          */
19         public ListPeers() {
20                 this(false, false);
21         }
22
23         /**
24          * Creates a new “ListPeers” request that includes wanted data of the peers.
25          * 
26          * @param withMetadata
27          *            If <code>true</code> metadata of the peers is included in
28          *            the reply
29          * @param withVolatile
30          *            if <code>true</code> volatile data of the peers is included
31          *            in the reply
32          */
33         public ListPeers(boolean withMetadata, boolean withVolatile) {
34                 super("ListPeers");
35                 setField("WithMetadata", String.valueOf(withMetadata));
36                 setField("WithVolatile", String.valueOf(withVolatile));
37         }
38
39 }