♻️ Move constants out of the class
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / database / BookmarkDatabase.kt
1 package net.pterodactylus.sone.database
2
3 import net.pterodactylus.sone.data.Post
4
5 /**
6  * Database interface for bookmark-related functionality.
7  */
8 interface BookmarkDatabase {
9
10         val bookmarkedPosts: Set<Post>
11
12         fun bookmarkPost(post: Post)
13         fun unbookmarkPost(post: Post)
14         fun isPostBookmarked(post: Post): Boolean
15
16 }