Created
October 5, 2021 19:52
-
-
Save brunogabriel/18b2ed8535d279e2a7679c53b04a8f82 to your computer and use it in GitHub Desktop.
Repositório de Posts
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 PostsRepository { | |
fun getPosts(): Single<List<PostResponse>> | |
} | |
class PostsRepositoryImpl @Inject constructor( | |
private val service: PostService | |
) : PostsRepository { | |
override fun getPosts(): Single<List<PostResponse>> = service.getPosts() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment