Skip to content

Instantly share code, notes, and snippets.

@ngallazzi
Created January 8, 2021 15:04
Show Gist options
  • Save ngallazzi/c62c39ee42ecbb446281f3c08237032f to your computer and use it in GitHub Desktop.
Save ngallazzi/c62c39ee42ecbb446281f3c08237032f to your computer and use it in GitHub Desktop.
class GetBooksUseCase(private val booksRepository: BooksRepository) {
suspend operator fun invoke(author: String) = booksRepository.getRemoteBooks(author)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment