@Inject
public GithubClient(GithubService service) {
this.githubService = service;
}
public Observable<List<GithubContributor>> getGithubContributors(String owner, String repo) {
return CommonClient.retry(githubService.getGithubContributors(owner, repo));
}
public Observable<List<GithubContributor>> getGithubContributors() {
return getGithubContributors("konifar", "droidkaigi2016");
}
public interface GithubService {
@GET("/repos/{owner}/{repo}/contributors")
Observable<List<GithubContributor>> getGithubContributors(
@Path("owner") String owner, @Path("repo") String repo);
}
} ΞϓϦ