Add ListPeerNotes command
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / quelaton / ListPeerNotesCommand.java
1 package net.pterodactylus.fcp.quelaton;
2
3 import java.util.Optional;
4
5 import net.pterodactylus.fcp.PeerNote;
6
7 /**
8  * List the peer notes of a single peer by its name (darknet only), node identifier, or host name/IP address and port
9  * number.
10  *
11  * @author <a href="mailto:bombe@freenetproject.org">David ‘Bombe’ Roden</a>
12  */
13 public interface ListPeerNotesCommand {
14
15         Executable<Optional<PeerNote>> byName(String name);
16         Executable<Optional<PeerNote>> byIdentity(String identity);
17         Executable<Optional<PeerNote>> byHostAndPort(String host, int port);
18
19 }