Package cc.carm.lib.githubreleases4j
Class GithubRelease
- java.lang.Object
-
- cc.carm.lib.githubreleases4j.GithubRelease
-
public class GithubRelease extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected @Nullable java.lang.String
authToken
@NotNull java.lang.String
owner
@NotNull java.lang.String
repository
-
Constructor Summary
Constructors Modifier Constructor Description protected
GithubRelease(@NotNull java.lang.String owner, @NotNull java.lang.String repository, @Nullable java.lang.String authToken, @NotNull org.json.JSONObject contents)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.util.List<GithubAsset>
getAssets()
Get the assets of this release.@NotNull java.lang.String
getAssetsURL()
@NotNull GithubUser
getAuthor()
Get the author of this release.protected @Nullable java.lang.String
getAuthToken()
@NotNull java.lang.String
getBody()
protected @NotNull org.json.JSONObject
getContents()
@Nullable java.util.Date
getCreateTime()
@Nullable java.lang.String
getDiscussionURL()
@NotNull java.lang.String
getHTMLUrl()
int
getID()
@NotNull java.lang.String
getName()
@NotNull java.lang.String
getNodeID()
@NotNull java.lang.String
getOwner()
@Nullable java.util.Date
getPublishTime()
@NotNull java.lang.String
getRepository()
@NotNull java.lang.String
getTagCommitIsh()
@NotNull java.lang.String
getTagName()
java.lang.String
getTarballURL()
@NotNull java.lang.String
getUploadURL()
@NotNull java.lang.String
getURL()
java.lang.String
getZipBallURL()
boolean
isDraft()
boolean
isPrerelease()
protected static @NotNull GithubRelease
of(@NotNull java.lang.String owner, @NotNull java.lang.String repository, @NotNull org.json.JSONObject contents)
protected static @NotNull GithubRelease
of(@NotNull java.lang.String owner, @NotNull java.lang.String repository, @Nullable java.lang.String token, @NotNull org.json.JSONObject contents)
void
setAuthToken(@Nullable java.lang.String authToken)
java.lang.String
toString()
-
-
-
Method Detail
-
of
@NotNull protected static @NotNull GithubRelease of(@NotNull @NotNull java.lang.String owner, @NotNull @NotNull java.lang.String repository, @Nullable @Nullable java.lang.String token, @NotNull @NotNull org.json.JSONObject contents)
-
of
@NotNull protected static @NotNull GithubRelease of(@NotNull @NotNull java.lang.String owner, @NotNull @NotNull java.lang.String repository, @NotNull @NotNull org.json.JSONObject contents)
-
getContents
@NotNull protected @NotNull org.json.JSONObject getContents()
-
getOwner
@NotNull public @NotNull java.lang.String getOwner()
-
getRepository
@NotNull public @NotNull java.lang.String getRepository()
-
getAuthToken
@Nullable protected @Nullable java.lang.String getAuthToken()
-
setAuthToken
public void setAuthToken(@Nullable @Nullable java.lang.String authToken)
-
getID
public int getID()
-
getTagName
@NotNull public @NotNull java.lang.String getTagName()
-
getName
@NotNull public @NotNull java.lang.String getName()
-
getBody
@NotNull public @NotNull java.lang.String getBody()
-
isDraft
public boolean isDraft()
-
isPrerelease
public boolean isPrerelease()
-
getCreateTime
@Nullable public @Nullable java.util.Date getCreateTime()
-
getPublishTime
@Nullable public @Nullable java.util.Date getPublishTime()
-
getNodeID
@NotNull public @NotNull java.lang.String getNodeID()
-
getTagCommitIsh
@NotNull public @NotNull java.lang.String getTagCommitIsh()
-
getURL
@NotNull public @NotNull java.lang.String getURL()
-
getHTMLUrl
@NotNull public @NotNull java.lang.String getHTMLUrl()
-
getAssetsURL
@NotNull public @NotNull java.lang.String getAssetsURL()
-
getUploadURL
@NotNull public @NotNull java.lang.String getUploadURL()
-
getTarballURL
public java.lang.String getTarballURL()
-
getZipBallURL
public java.lang.String getZipBallURL()
-
getDiscussionURL
@Nullable public @Nullable java.lang.String getDiscussionURL()
-
getAuthor
@NotNull public @NotNull GithubUser getAuthor()
Get the author of this release.- Returns:
- The author user
GithubUser
-
getAssets
@NotNull public @NotNull java.util.List<GithubAsset> getAssets()
Get the assets of this release.- Returns:
GithubAsset
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-