Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ServiceManager(private val service: ArticlesService) {
- fun articlesByUser(userId: String): Promise<ArrayList<Article>, Exception> {
- return task {
- service.articles(userId).execute()
- }.then {
- it?.body()?.articles
- }
- }
- }
Add Comment
Please, Sign In to add comment