package net.pterodactylus.sone.database;
import java.util.Collection;
+import java.util.Set;
import net.pterodactylus.sone.data.Post;
import net.pterodactylus.sone.data.Sone;
+import com.google.common.base.Function;
import com.google.common.base.Optional;
/**
*/
public interface PostDatabase {
+ Function<String, Optional<Post>> getPost();
+
/**
* Returns the post with the given ID.
*
*/
void removePosts(Sone sone);
+ void setPostKnown(Post post);
+ boolean isPostKnown(Post post);
+ void likePost(Post post, Sone localSone);
+ void unlikePost(Post post, Sone localSone);
+ boolean isLiked(Post post, Sone sone);
+ Set<Sone> getLikes(Post post);
+
}