From: David ‘Bombe’ Roden Date: Fri, 10 Jul 2015 09:25:23 +0000 (+0200) Subject: Expose fields from FCP replies messages X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=79d02e6df41ae4c5c6a94aa52d491facf4d4ef7c;p=jFCPlib.git Expose fields from FCP replies messages --- diff --git a/src/main/java/net/pterodactylus/fcp/BaseMessage.java b/src/main/java/net/pterodactylus/fcp/BaseMessage.java index a5ea020..cca7d67 100644 --- a/src/main/java/net/pterodactylus/fcp/BaseMessage.java +++ b/src/main/java/net/pterodactylus/fcp/BaseMessage.java @@ -57,7 +57,7 @@ public class BaseMessage { * @return The content of the field, or null if there is no * such field */ - protected String getField(String field) { + public String getField(String field) { return receivedMessage.getField(field); } @@ -67,7 +67,7 @@ public class BaseMessage { * @see FcpMessage#getFields() * @return All fields from the message */ - protected Map getFields() { + public Map getFields() { return receivedMessage.getFields(); }