Skip to content

Instantly share code, notes, and snippets.

@tfcporciuncula
Created July 15, 2018 04:22
Show Gist options
  • Save tfcporciuncula/758a12298a469925fb1f670a1e239387 to your computer and use it in GitHub Desktop.
Save tfcporciuncula/758a12298a469925fb1f670a1e239387 to your computer and use it in GitHub Desktop.
mediator-live-data-gist-1
class BooksViewModel(bookDao: BookDao) : ViewModel() {
// to make things simpler here, let's skip the repository layer
val books = bookDao.books()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment