Last active
August 2, 2017 15:59
-
-
Save kozmi55/6271985e3f4e532d32a58ff7ccdae241 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserRepository(private val userService: UserService) { | |
fun getUsers(page: Int) = userService.getUsers(page) | |
fun getDetails(userId: Long) : Single<DetailsModel> { | |
// TODO We will implement this method | |
return Single.create { emitter -> | |
val detailsModel = DetailsModel(emptyList(), emptyList(), emptyList()) | |
emitter.onSuccess(detailsModel) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment