Last active
April 1, 2019 00:34
-
-
Save enginebai/2826b87f8aacf13cf4267f19e34b09e2 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
interface PostRepository { | |
fun getNewPostList(): Observable<List<NewPost>> | |
// ... | |
} | |
class PostRepositoryImpl : PostRepository { | |
private val localDataSource: NewPostDao by inject() | |
override fun getNewPostList(): Observable<List<NewPost>> { | |
return localDataSource.getAll() | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment