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