X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FFcpInterface.java;h=55b7afcc597b42edd528462f86ed63fba64acb4a;hb=86de0f4478465475dd403ae9daa90aabe0ca3e9c;hp=81928dd1ee914ffd069a3dbfcd5a7edc3b1d998f;hpb=2581481ff5a60ea2b00fd69df276a3f3a1f4ef21;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/fcp/FcpInterface.java b/src/main/java/net/pterodactylus/sone/fcp/FcpInterface.java index 81928dd..55b7afc 100644 --- a/src/main/java/net/pterodactylus/sone/fcp/FcpInterface.java +++ b/src/main/java/net/pterodactylus/sone/fcp/FcpInterface.java @@ -25,7 +25,7 @@ import net.pterodactylus.sone.core.Core; import net.pterodactylus.sone.freenet.fcp.Command; import net.pterodactylus.sone.freenet.fcp.FcpException; import net.pterodactylus.sone.freenet.fcp.Command.AccessType; -import net.pterodactylus.sone.freenet.fcp.Command.Reply; +import net.pterodactylus.sone.freenet.fcp.Command.Response; import freenet.pluginmanager.FredPluginFCP; import freenet.pluginmanager.PluginNotFoundException; import freenet.pluginmanager.PluginReplySender; @@ -52,6 +52,7 @@ public class FcpInterface { public FcpInterface(Core core) { commands.put("Version", new VersionCommand()); commands.put("GetLocalSones", new GetLocalSonesCommand(core)); + commands.put("GetPosts", new GetPostsCommand(core)); commands.put("GetPostFeed", new GetPostFeedCommand(core)); } @@ -81,7 +82,7 @@ public class FcpInterface { return; } try { - Reply reply = command.execute(parameters, data, AccessType.values()[accessType]); + Response reply = command.execute(parameters, data, AccessType.values()[accessType]); SimpleFieldSet replyParameters = reply.getReplyParameters(); replyParameters.putOverwrite("Identifier", identifier); if (reply.hasData()) {