Interface GistOperations
-
- All Known Implementing Classes:
GistTemplate
public interface GistOperationsInterface defining the operations for working with GitHub gists.- Author:
- Willie Wheeler (willie.wheeler@gmail.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GitHubGistgetGist(String id)Returns the gist with the given ID.GitHubCommentgetGistComment(Long id)Public operation to return a gist comment.List<GitHubComment>getGistComments(String gistId)Public operation to return the comments on a given gist.List<GitHubGist>getGists()If authenticated, this method returns the current user's gists.List<GitHubGist>getPublicGists()Public operation to return all public gists.List<GitHubGist>getStarredGists()Returns the authenticated user's starred gists.List<GitHubGist>getUserGists(String user)Public operation to return the given user's public gists.
-
-
-
Method Detail
-
getUserGists
List<GitHubGist> getUserGists(String user)
Public operation to return the given user's public gists.- Parameters:
user- GitHub user- Returns:
- list of user's gists
-
getGists
List<GitHubGist> getGists()
If authenticated, this method returns the current user's gists. Otherwise it returns all public gists.
- Returns:
- current user's gists, or else all public gists
-
getPublicGists
List<GitHubGist> getPublicGists()
Public operation to return all public gists.- Returns:
- all public gists
-
getStarredGists
List<GitHubGist> getStarredGists()
Returns the authenticated user's starred gists.- Returns:
- authenticated user's starred gists
-
getGist
GitHubGist getGist(String id)
Returns the gist with the given ID.- Parameters:
id- gist ID- Returns:
- gist
-
getGistComments
List<GitHubComment> getGistComments(String gistId)
Public operation to return the comments on a given gist.- Parameters:
gistId- gist ID- Returns:
- gist comments
-
getGistComment
GitHubComment getGistComment(Long id)
Public operation to return a gist comment.- Parameters:
id- comment ID- Returns:
- comment
-
-