/** * Search repos * * @param keyword * @param sort * @param order * @param pageCount * @param perPageCount * @param callback */ public void searchRepo( String keyword, SortEnumRepo sort, OrderEnum order, int pageCount, int perPageCount, ApiCallback<SearchedRepos> callback) { mGithubApi.searchRepo( keyword, sort, order, String.valueOf(pageCount), String.valueOf(perPageCount), callback); }
/** * Search users * * @param username * @param sortEnumUser * @param orderEnum * @param pageCount * @param perPageCount * @param callback */ public void searchUser( String username, SortEnumUser sortEnumUser, OrderEnum orderEnum, int pageCount, int perPageCount, ApiCallback<SearchedUsers> callback) { mGithubApi.searchUser( username, sortEnumUser, orderEnum, String.valueOf(pageCount), String.valueOf(perPageCount), callback); }
/** * unfollow a user success : 204, fail : 404 * * @param username * @param callback */ public void unfollow(String username, ApiCallback<Object> callback) { mGithubApi.unfollow(username, callback); }
/** * Get specified user's following list * * @param username * @param callback */ public void getFollowingList(String username, ApiCallback<List<Owner>> callback) { mGithubApi.getFollowingList(username, null, null, callback); }
/** * Get repo star status already starrd:204 not starred:404 * * @param owner repo owner * @param repo repo name * @param callback callback */ public void isStarred(String owner, String repo, ApiCallback<Object> callback) { mGithubApi.starStatus(owner, repo, callback); }
/** * follow a user success : 204 fail : 404 * * @param username * @param callback */ public void follow(String username, ApiCallback<Object> callback) { mGithubApi.follow("", username, callback); }
/** * Unstar a repo * * @param owner repo owner * @param repo repo name * @param callback callback */ public void unstart(String owner, String repo, ApiCallback<Object> callback) { mGithubApi.unstar(owner, repo, callback); }
public void getRepo(String username, String repoName, ApiCallback<Repo> callback) { mGithubApi.getRepo(username, repoName, callback); }
/** * Search repos by page, best match and desc order * * @param keyword * @param pageCount * @param perPageCount * @param callback */ public void searchRepo( String keyword, int pageCount, int perPageCount, ApiCallback<SearchedRepos> callback) { mGithubApi.searchRepo( keyword, null, null, String.valueOf(pageCount), String.valueOf(perPageCount), callback); }
/** * List specified user's performed events by page * * @param username * @param callback */ public void getUserEvents( String username, int pageCount, int perPageCount, ApiCallback<List<TimeLineEvent>> callback) { mGithubApi.userEvents( username, String.valueOf(pageCount), String.valueOf(perPageCount), callback); }
/** * Fork a repo for authenticated user * * @param owner repo owner * @param repo repo name * @param callback */ public void fork(String owner, String repo, ApiCallback<ForkRepo> callback) { mGithubApi.forkRepo(new TypedJsonString(""), owner, repo, callback); }
/** * Search repos, best match, desc, default page config * * @param keyword repo name * @param callback */ public void searchRepo(String keyword, ApiCallback<SearchedRepos> callback) { mGithubApi.searchRepo(keyword, null, null, null, null, callback); }
/** * List starred repo by authenticated user by page * * @param pageCount * @param perPageCount * @param callback */ public void listStarredRepoByAuthUser( int pageCount, int perPageCount, ApiCallback<List<Repo>> callback) { mGithubApi.listStaredRepoByAuthUser( String.valueOf(pageCount), String.valueOf(perPageCount), callback); }
/** * List starred repo by authenticated user * * @param callback */ public void listStarredRepoByAuthUser(ApiCallback<List<Repo>> callback) { mGithubApi.listStaredRepoByAuthUser(null, null, callback); }
/** * List starred repo by specified user * * @param username * @param callback */ public void listStarRepoByUser(String username, ApiCallback<List<Repo>> callback) { mGithubApi.listStarredRepoByUser(username, null, null, callback); }
/** * Get specified user's following list by page * * @param username * @param callback */ public void getFollowingList( String username, int pageCount, int perPageCount, ApiCallback<List<Owner>> callback) { mGithubApi.getFollowingList( username, String.valueOf(pageCount), String.valueOf(perPageCount), callback); }
/** * get org list for auth user * * @param callback */ public void getOrg(ApiCallback<List<Organzation>> callback) { mGithubApi.getOrg(callback); }
/** * List events performed by a user * * @param username * @param callback */ public void getUserEvents(String username, ApiCallback<List<TimeLineEvent>> callback) { mGithubApi.userEvents(username, null, null, callback); }
/** * Get authenticated user info * * @param callback */ public void getCurrentUser(ApiCallback<User> callback) { mGithubApi.getCurrentUser(callback); }
/** * List repository events * * @param owner repo's owner * @param repoName repo name * @param callback */ public void getRepoEvents( String owner, String repoName, ApiCallback<List<TimeLineEvent>> callback) { mGithubApi.repoEvents(owner, repoName, callback); }
/** * Star a repo success:204 fail:404 * * @param owner repo owner * @param repo repo name * @param callback callback */ public void star(String owner, String repo, ApiCallback<Object> callback) { mGithubApi.star("", owner, repo, callback); }
/** * get org list for specified user * * @param username * @param callback */ public void getUserOrgs(String username, ApiCallback<List<Organzation>> callback) { mGithubApi.getUserOrgs(username, callback); }
/** * Search users, best match, desc order and default page config * * @param username * @param callback */ public void searchUser(String username, ApiCallback<SearchedUsers> callback) { mGithubApi.searchUser(username, null, null, null, null, callback); }
/** * Get specified user info * * @param username * @param callback */ public void getUser(String username, ApiCallback<User> callback) { mGithubApi.getUser(username, callback); }
/** * Search users, best match and desc order * * @param username * @param pageCount * @param perPageCount * @param callback */ public void searchUser( String username, int pageCount, int perPageCount, ApiCallback<SearchedUsers> callback) { mGithubApi.searchUser( username, null, null, String.valueOf(pageCount), String.valueOf(perPageCount), callback); }
/** * List user's repos * * @param username * @param callback */ public void listRepos(String username, ApiCallback<List<Repo>> callback) { mGithubApi.listRepos(username, null, null, callback); }
/** * List user's repos by page * * @param username * @param pageCount current page * @param perPageCount result per page * @param callback */ public void listReposByPage( String username, int pageCount, int perPageCount, ApiCallback<List<Repo>> callback) { mGithubApi.listRepos( username, String.valueOf(pageCount), String.valueOf(perPageCount), callback); }