public final class GHGist extends Object
GHUser.listGists(),
GitHub.getGist(String),
GitHub.createGist()| 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() |
Date |
getCreatedAt() |
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() |
String |
getHtmlUrl() |
String |
getId()
ID of this gist, such as '12345'
|
GHUser |
getOwner()
User that owns this Gist.
|
Date |
getUpdatedAt() |
String |
getUrl()
API URL of this gist, such as 'https://api.github.com/gists/12345'
|
int |
hashCode() |
boolean |
isPublic() |
boolean |
isStarred() |
PagedIterable<GHGist> |
listForks() |
void |
star() |
void |
unstar() |
public GHUser getOwner()
public String getUrl()
public String getForksUrl()
public String getCommitsUrl()
public String getId()
public String getGitPullUrl()
public String getGitPushUrl()
public String getHtmlUrl()
public boolean isPublic()
public Date getCreatedAt()
public Date getUpdatedAt()
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 © 2014. All rights reserved.