Guest User

Untitled

a guest
Oct 19th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. class ServiceManager(private val service: ArticlesService) {
  2. fun articlesByUser(userId: String): Promise<ArrayList<Article>, Exception> {
  3. return task {
  4. service.articles(userId).execute()
  5. }.then {
  6. it?.body()?.articles
  7. }
  8. }
  9. }
Add Comment
Please, Sign In to add comment