Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 /**
  * 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);
 }
Пример #3
0
 /**
  * unfollow a user success : 204, fail : 404
  *
  * @param username
  * @param callback
  */
 public void unfollow(String username, ApiCallback<Object> callback) {
   mGithubApi.unfollow(username, callback);
 }
Пример #4
0
 /**
  * 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);
 }
Пример #5
0
 /**
  * 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);
 }
Пример #6
0
 /**
  * follow a user success : 204 fail : 404
  *
  * @param username
  * @param callback
  */
 public void follow(String username, ApiCallback<Object> callback) {
   mGithubApi.follow("", username, callback);
 }
Пример #7
0
 /**
  * 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);
 }
Пример #8
0
 public void getRepo(String username, String repoName, ApiCallback<Repo> callback) {
   mGithubApi.getRepo(username, repoName, callback);
 }
Пример #9
0
 /**
  * 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);
 }
Пример #10
0
 /**
  * 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);
 }
Пример #11
0
 /**
  * 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);
 }
Пример #12
0
 /**
  * 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);
 }
Пример #13
0
 /**
  * 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);
 }
Пример #14
0
 /**
  * List starred repo by authenticated user
  *
  * @param callback
  */
 public void listStarredRepoByAuthUser(ApiCallback<List<Repo>> callback) {
   mGithubApi.listStaredRepoByAuthUser(null, null, callback);
 }
Пример #15
0
 /**
  * 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);
 }
Пример #16
0
 /**
  * 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);
 }
Пример #17
0
 /**
  * get org list for auth user
  *
  * @param callback
  */
 public void getOrg(ApiCallback<List<Organzation>> callback) {
   mGithubApi.getOrg(callback);
 }
Пример #18
0
 /**
  * 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);
 }
Пример #19
0
 /**
  * Get authenticated user info
  *
  * @param callback
  */
 public void getCurrentUser(ApiCallback<User> callback) {
   mGithubApi.getCurrentUser(callback);
 }
Пример #20
0
 /**
  * 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);
 }
Пример #21
0
 /**
  * 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);
 }
Пример #22
0
 /**
  * get org list for specified user
  *
  * @param username
  * @param callback
  */
 public void getUserOrgs(String username, ApiCallback<List<Organzation>> callback) {
   mGithubApi.getUserOrgs(username, callback);
 }
Пример #23
0
 /**
  * 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);
 }
Пример #24
0
 /**
  * Get specified user info
  *
  * @param username
  * @param callback
  */
 public void getUser(String username, ApiCallback<User> callback) {
   mGithubApi.getUser(username, callback);
 }
Пример #25
0
 /**
  * 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);
 }
Пример #26
0
 /**
  * List user's repos
  *
  * @param username
  * @param callback
  */
 public void listRepos(String username, ApiCallback<List<Repo>> callback) {
   mGithubApi.listRepos(username, null, null, callback);
 }
Пример #27
0
 /**
  * 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);
 }