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 likePost(Post post, Sone localSone);
+ void unlikePost(Post post, Sone localSone);
+
}