AndroidのDIの勉強をしていてこのサイト(https://developers.eure.jp/tech/android-di/)にたどり着いたのですが、以下のようなコードが提示されておりました
public class GithubClient { private GithubService service; public GithubClient(GithubService service) { this.service = service; } public interface GithubService { @GET("/repos/{owner}/{repo}/contributors") Observable<List<GithubContributor>> getGithubContributors( @Path("owner") String owner, @Path("repo") String repo); } }
ここでの
@GET...
Observable
getGithubContributors
がどのような関数なのか教えていただきたいです。
おそらくDIの記事とは直接無関係だとは思いますが気になってしまいました。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/10/14 03:40