Buran/app/src/main/java/corewala/buran/io/database/history/HistoryDatasource.kt

12 lines
343 B
Kotlin
Raw Normal View History

2021-12-02 18:11:34 +00:00
package corewala.buran.io.database.history
import android.net.Uri
interface HistoryDatasource {
fun get(onHistory: (List<HistoryEntry>) -> Unit)
fun add(entry: HistoryEntry, onAdded: () -> Unit)
fun add(uri: Uri, onAdded: () -> Unit)
fun clear(onClear: () -> Unit)
fun delete(entry: HistoryEntry, onDelete: () -> Unit)
}