Make constructor public and include it in the FCP interface’s commands.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 11 Apr 2011 08:14:42 +0000 (10:14 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 11 Apr 2011 08:14:42 +0000 (10:14 +0200)
src/main/java/net/pterodactylus/sone/fcp/FcpInterface.java
src/main/java/net/pterodactylus/sone/fcp/GetPostCommand.java

index 0ca2f1f..7b3663f 100644 (file)
@@ -62,6 +62,7 @@ public class FcpInterface {
        public FcpInterface(Core core) {
                commands.put("Version", new VersionCommand());
                commands.put("GetLocalSones", new GetLocalSonesCommand(core));
+               commands.put("GetPost", new GetPostCommand(core));
                commands.put("GetPosts", new GetPostsCommand(core));
                commands.put("GetPostFeed", new GetPostFeedCommand(core));
                commands.put("LikePost", new LikePostCommand(core));
index b01b8f2..bb87407 100644 (file)
@@ -36,7 +36,7 @@ public class GetPostCommand extends AbstractSoneCommand {
         * @param core
         *            The Sone core
         */
-       protected GetPostCommand(Core core) {
+       public GetPostCommand(Core core) {
                super(core);
        }