Add second constructor to set identifier
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 13 Jul 2015 05:15:37 +0000 (07:15 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 13 Jul 2015 05:15:42 +0000 (07:15 +0200)
src/main/java/net/pterodactylus/fcp/ListPeerNotes.java

index 82e3399..9080830 100644 (file)
@@ -38,4 +38,9 @@ public class ListPeerNotes extends FcpMessage {
                setField("NodeIdentifier", nodeIdentifier);
        }
 
+       public ListPeerNotes(String identifier, String nodeIdentifier) {
+               this(nodeIdentifier);
+               setField("Identifier", identifier);
+       }
+
 }