Android Open Source - RetrofitSample Github Service






From Project

Back to project page RetrofitSample.

License

The source code is released under:

Apache License

If you think the Android project RetrofitSample listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.gorcyn.sample.retrofit.service;
/* w  ww  .  j a v  a 2 s .  c o m*/
import com.gorcyn.sample.retrofit.model.Repos;
import com.gorcyn.sample.retrofit.model.User;

import java.util.List;

import retrofit.Callback;
import retrofit.http.GET;
import retrofit.http.Path;

public interface GithubService {

    @GET("/users/{user}")
    void getUser(@Path("user") String user, Callback<User> callback);

    @GET("/users/{user}/repos")
    void getUserRepos(@Path("user") String user, Callback<List<Repos>> callback);
}




Java Source Code List

com.gorcyn.sample.retrofit.ApplicationTest.java
com.gorcyn.sample.retrofit.model.Repos.java
com.gorcyn.sample.retrofit.model.User.java
com.gorcyn.sample.retrofit.service.GithubServiceProvider.java
com.gorcyn.sample.retrofit.service.GithubService.java
com.gorcyn.sample.retrofit.ui.MainActivity.java