From 062c2f6b4fbbf3b0777103081cc4e270291685f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 16 Oct 2017 07:08:50 +0200 Subject: [PATCH] Replace bookmark database interface with Kotlin version --- .../pterodactylus/sone/database/BookmarkDatabase.java | 19 ------------------- .../pterodactylus/sone/database/BookmarkDatabase.kt | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 19 deletions(-) delete mode 100644 src/main/java/net/pterodactylus/sone/database/BookmarkDatabase.java create mode 100644 src/main/kotlin/net/pterodactylus/sone/database/BookmarkDatabase.kt diff --git a/src/main/java/net/pterodactylus/sone/database/BookmarkDatabase.java b/src/main/java/net/pterodactylus/sone/database/BookmarkDatabase.java deleted file mode 100644 index 6eb9c38..0000000 --- a/src/main/java/net/pterodactylus/sone/database/BookmarkDatabase.java +++ /dev/null @@ -1,19 +0,0 @@ -package net.pterodactylus.sone.database; - -import java.util.Set; - -import net.pterodactylus.sone.data.Post; - -/** - * Database interface for bookmark-related functionality. - * - * @author David ‘Bombe’ Roden - */ -public interface BookmarkDatabase { - - void bookmarkPost(Post post); - void unbookmarkPost(Post post); - boolean isPostBookmarked(Post post); - Set getBookmarkedPosts(); - -} diff --git a/src/main/kotlin/net/pterodactylus/sone/database/BookmarkDatabase.kt b/src/main/kotlin/net/pterodactylus/sone/database/BookmarkDatabase.kt new file mode 100644 index 0000000..f44c1b8 --- /dev/null +++ b/src/main/kotlin/net/pterodactylus/sone/database/BookmarkDatabase.kt @@ -0,0 +1,16 @@ +package net.pterodactylus.sone.database + +import net.pterodactylus.sone.data.Post + +/** + * Database interface for bookmark-related functionality. + */ +interface BookmarkDatabase { + + val bookmarkedPosts: Set + + fun bookmarkPost(post: Post) + fun unbookmarkPost(post: Post) + fun isPostBookmarked(post: Post): Boolean + +} -- 2.7.4