-
-
Save aleweichandt/85f4ea8cf7a91a3641529b4819168261 to your computer and use it in GitHub Desktop.
Cache Interface example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface ITodoCache { | |
// required for List<Todo> output | |
suspend fun getAllTodos(): List<Todo>? | |
suspend fun storeAllTodos(todos: List<Todo>) | |
suspend fun deleteAllTodos() | |
// required for Todo output | |
suspend fun getTodoById(id: Long): Todo? | |
suspend fun storeTodo(todo: Todo) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment