public class GHGist extends GHObject
GHUser#listGists(),
GitHub#getGist(String),
GitHub#createGist(),
documentationcreated_at, responseHeaderFields, 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()
Gets comment count.
|
String |
getCommentsUrl()
Gets comments url.
|
String |
getCommitsUrl()
Gets commits url.
|
String |
getDescription()
Gets description.
|
GHGistFile |
getFile(String name)
Gets file.
|
Map<String,GHGistFile> |
getFiles()
Gets files.
|
String |
getForksUrl()
Gets forks url.
|
String |
getGitPullUrl()
Gets git pull url.
|
String |
getGitPushUrl()
Gets git push url.
|
URL |
getHtmlUrl()
Gets html url.
|
GHUser |
getOwner()
Gets owner.
|
int |
hashCode() |
boolean |
isPublic()
Is public boolean.
|
boolean |
isStarred()
Is starred boolean.
|
PagedIterable<GHGist> |
listForks()
List forks paged iterable.
|
void |
star()
Star.
|
void |
unstar()
Unstar.
|
GHGistUpdater |
update()
Updates this gist via a builder.
|
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, toStringpublic GHUser getOwner() throws IOException
IOException - the io exceptionpublic 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)
name - the namepublic Map<String,GHGistFile> getFiles()
public void star()
throws IOException
IOException - the io exceptionpublic void unstar()
throws IOException
IOException - the io exceptionpublic boolean isStarred()
throws IOException
IOException - the io exceptionpublic GHGist fork() throws IOException
IOException - the io exceptionpublic PagedIterable<GHGist> listForks()
public void delete()
throws IOException
IOException - the io exceptionpublic GHGistUpdater update() throws IOException
IOException - the io exceptionCopyright © 2020. All rights reserved.