From 1d2048edc0856425c91337bb103ee526de663e9d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 13 Jul 2015 07:15:37 +0200 Subject: [PATCH] Add second constructor to set identifier --- src/main/java/net/pterodactylus/fcp/ListPeerNotes.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/net/pterodactylus/fcp/ListPeerNotes.java b/src/main/java/net/pterodactylus/fcp/ListPeerNotes.java index 82e3399..9080830 100644 --- a/src/main/java/net/pterodactylus/fcp/ListPeerNotes.java +++ b/src/main/java/net/pterodactylus/fcp/ListPeerNotes.java @@ -38,4 +38,9 @@ public class ListPeerNotes extends FcpMessage { setField("NodeIdentifier", nodeIdentifier); } + public ListPeerNotes(String identifier, String nodeIdentifier) { + this(nodeIdentifier); + setField("Identifier", identifier); + } + } -- 2.7.4