Skip to content

Commit

Permalink
add a RepositoryFileApi instance to GilLabApi.
Browse files Browse the repository at this point in the history
  • Loading branch information
六幻 committed May 14, 2015
1 parent 3e42bef commit db48ec9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/main/java/com/messners/gitlab/api/GitLabApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class GitLabApi {
private RepositoryApi repositoryApi;
private SessionApi sessoinApi;
private UserApi userApi;
private RepositoryFileApi repositoryFileApi;

/**
* Logs into GitLab using provided {@code username} and {@code password}, and creates a new
Expand Down Expand Up @@ -48,6 +49,7 @@ public GitLabApi (String hostUrl, String privateToken) {
repositoryApi = new RepositoryApi(this);
sessoinApi = new SessionApi(this);
userApi = new UserApi(this);
repositoryFileApi = new RepositoryFileApi(this);
}


Expand Down Expand Up @@ -137,4 +139,26 @@ public SessionApi getSessionApi () {
public UserApi getUserApi () {
return (userApi);
}


/**
* Gets the RepositoryFileApi instance owned by this GitLabApi instance. The RepositoryFileApi is used
* to perform all repository files related API calls.
*
* @return the RepositoryFileApi instance owned by this GitLabApi instance
*/
public RepositoryFileApi getRepositoryFileApi() {
return repositoryFileApi;
}

/**
* Gets the RepositoryFileApi instance owned by this GitLabApi instance. The RepositoryFileApi is used
* to perform all repository files related API calls.
*
* @return the RepositoryFileApi instance owned by this GitLabApi instance
*/
public void setRepositoryFileApi(RepositoryFileApi repositoryFileApi) {
this.repositoryFileApi = repositoryFileApi;
}

}

0 comments on commit db48ec9

Please sign in to comment.