Skip to content

Instantly share code, notes, and snippets.

@brunogabriel
Created October 5, 2021 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunogabriel/18b2ed8535d279e2a7679c53b04a8f82 to your computer and use it in GitHub Desktop.
Save brunogabriel/18b2ed8535d279e2a7679c53b04a8f82 to your computer and use it in GitHub Desktop.
Repositório de Posts
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