public class GHGist extends GHObject
GHUser.listGists(),
GitHub.getGist(String),
GitHub.createGist(),
documentationcreated_at, updated_at, url| Constructor and Description |
|---|
GHGist() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes this gist.
|
boolean |
equals(Object o) |
GHGist |
fork()
Forks this gist into your own.
|
int |
getCommentCount() |
String |
getCommentsUrl()
API URL of listing comments.
|
String |
getCommitsUrl() |
String |
getDescription() |
GHGistFile |
getFile(String name) |
Map<String,GHGistFile> |
getFiles() |
String |
getForksUrl() |
String |
getGitPullUrl()
URL like https://gist.github.com/gists/12345.git
|
String |
getGitPushUrl() |
URL |
getHtmlUrl()
URL of this object for humans, which renders some HTML.
|
GHUser |
getOwner()
User that owns this Gist.
|
int |
hashCode() |
boolean |
isPublic() |
boolean |
isStarred() |
PagedIterable<GHGist> |
listForks() |
void |
star() |
void |
unstar() |
getCreatedAt, getId, getUpdatedAt, getUrl, toStringpublic GHUser getOwner()
public String getForksUrl()
public String getCommitsUrl()
public String getGitPullUrl()
public String getGitPushUrl()
public URL getHtmlUrl()
GHObjectgetHtmlUrl in class GHObjectpublic boolean isPublic()
public String getDescription()
public int getCommentCount()
public String getCommentsUrl()
public GHGistFile getFile(String name)
public Map<String,GHGistFile> getFiles()
public void star()
throws IOException
IOExceptionpublic void unstar()
throws IOException
IOExceptionpublic boolean isStarred()
throws IOException
IOExceptionpublic GHGist fork() throws IOException
IOExceptionpublic PagedIterable<GHGist> listForks()
public void delete()
throws IOException
IOExceptionCopyright © 2017. All rights reserved.