Add methods for more attributes of message
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 21 Aug 2015 05:08:07 +0000 (07:08 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 21 Aug 2015 05:08:07 +0000 (07:08 +0200)
src/main/java/net/pterodactylus/fcp/PluginInfo.java

index fa23f84..bf11be8 100644 (file)
@@ -73,4 +73,15 @@ public class PluginInfo extends BaseMessage implements Identifiable {
                return Boolean.valueOf(getField("Started"));
        }
 
+       public boolean isTalkable() {
+               return Boolean.valueOf(getField("IsTalkable"));
+       }
+
+       public String getVersion() {
+               return getField("Version");
+       }
+
+       public String getLongVersion() {
+               return getField("LongVersion");
+       }
 }