Store the “known” status of a post in the database.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Post.java
index 63b4908..bd3986f 100644 (file)
@@ -20,6 +20,7 @@ package net.pterodactylus.sone.data;
 import java.util.Collections;
 import java.util.Comparator;
 import java.util.List;
+import java.util.Set;
 
 import com.google.common.base.Function;
 import com.google.common.base.Optional;
@@ -118,13 +119,15 @@ public interface Post extends Identified {
        /**
         * Sets whether this post is known.
         *
-        * @param known
-        *            {@code true} if this post is known, {@code false} otherwise
         * @return This post
         */
-       public Post setKnown(boolean known);
+       public Post setKnown();
 
-       public void like(Sone localSone);
+       void like(Sone localSone);
+       void unlike(Sone localSone);
+
+       boolean isLiked(Sone sone);
+       Set<Sone> getLikes();
 
        List<PostReply> getReplies();