Add custom exception for adding duplicate fields
[Sone.git] / src / main / java / net / pterodactylus / sone / database / BookmarkDatabase.java
1 package net.pterodactylus.sone.database;
2
3 import java.util.Set;
4
5 import net.pterodactylus.sone.data.Post;
6
7 /**
8  * Database interface for bookmark-related functionality.
9  *
10  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
11  */
12 public interface BookmarkDatabase {
13
14         void bookmarkPost(Post post);
15         void unbookmarkPost(Post post);
16         boolean isPostBookmarked(Post post);
17         Set<Post> getBookmarkedPosts();
18
19 }