Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val articlesRepo: Repository<Article> = // some dependency injection
- val articlesQueriesFactory: QueriesFactory<Article> = // some dependency injection
- // …
- val articleId = // …
- articlesRepo.read(articlesQueriesFactory.articleById(articleId))
- .subscribe(
- { article -> updateView(article) },
- { showDataAccessError() }
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement