Created
April 23, 2020 16:12
-
-
Save alfonsogarsan/f7a37ad8da4e2ec2d5fe34f57e1df51e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 AnswerRepositoryImpl( | |
private val answerApiService: AnswerApiService | |
//In this example there isn't DAO for answer | |
) : AnswerRepository{ | |
override fun getAnswer(): Observable<Answer> { | |
return answerApiService.getAnswer().map { it.toDomain()} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment