Move unliking a post from Sone to Post.
[Sone.git] / src / main / java / net / pterodactylus / sone / database / PostDatabase.java
index 7bfa33a..8bdca6c 100644 (file)
@@ -22,6 +22,7 @@ import java.util.Collection;
 import net.pterodactylus.sone.data.Post;
 import net.pterodactylus.sone.data.Sone;
 
+import com.google.common.base.Function;
 import com.google.common.base.Optional;
 
 /**
@@ -31,6 +32,8 @@ import com.google.common.base.Optional;
  */
 public interface PostDatabase {
 
+       Function<String, Optional<Post>> getPost();
+
        /**
         * Returns the post with the given ID.
         *
@@ -96,4 +99,7 @@ public interface PostDatabase {
         */
        void removePosts(Sone sone);
 
+       void likePost(Post post, Sone localSone);
+       void unlikePost(Post post, Sone localSone);
+
 }