Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. val articlesRepo: Repository<Article> = // some dependency injection
  2. val articlesQueriesFactory: QueriesFactory<Article> = // some dependency injection
  3.  
  4. // …
  5.  
  6. val articleId = // …
  7. articlesRepo.read(articlesQueriesFactory.articleById(articleId))
  8. .subscribe(
  9. { article -> updateView(article) },
  10. { showDataAccessError() }
  11. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement