initial commit
This commit is contained in:
commit
d84861949f
92 files changed
+8425
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package net.keinekekse.app.books.db
|
||||
|
||||
import net.keinekekse.app.books.model.*
|
||||
|
||||
interface BookRepository {
|
||||
suspend fun allBooks(): List<Book>
|
||||
suspend fun bookById(id: Int): Book?
|
||||
suspend fun booksBySeries(series: Series): List<Book>
|
||||
suspend fun bookByTitle(title: String): List<Book>
|
||||
suspend fun booksByArtist(artist: Artist): List<Book>
|
||||
suspend fun addBook(book: Book)
|
||||
suspend fun removeBook(id: Int): Boolean
|
||||
|
||||
suspend fun allPublishers(): List<Publisher>
|
||||
suspend fun allArtists(): List<Artist>
|
||||
suspend fun allSeries(): List<Series>
|
||||
suspend fun allTags(): List<Tag>
|
||||
}
|
||||
Reference in new issue
Block a user