projects
/
jFCPlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Expose lots of constructors and accessors
[jFCPlib.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
fcp
/
ListPeer.java
diff --git
a/src/main/java/net/pterodactylus/fcp/ListPeer.java
b/src/main/java/net/pterodactylus/fcp/ListPeer.java
index
e96a389
..
2984e6c
100644
(file)
--- a/
src/main/java/net/pterodactylus/fcp/ListPeer.java
+++ b/
src/main/java/net/pterodactylus/fcp/ListPeer.java
@@
-35,7
+35,14
@@
public class ListPeer extends FcpMessage {
* The identifier of the node to get details about
*/
public ListPeer(String nodeIdentifier) {
* The identifier of the node to get details about
*/
public ListPeer(String nodeIdentifier) {
+ this(null, nodeIdentifier);
+ }
+
+ public ListPeer(String identifier, String nodeIdentifier) {
super("ListPeer");
super("ListPeer");
+ if (identifier != null) {
+ setField("Identifier", identifier);
+ }
setField("NodeIdentifier", nodeIdentifier);
}
setField("NodeIdentifier", nodeIdentifier);
}