Package de.coho04.githubapi.entities
Klasse GHArtifact
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.bases.ClassBase
de.coho04.githubapi.entities.GHArtifact
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
This class represents a GitHub Artifact.
It provides methods for fetching data about the artifact such as its name, size in bytes, url, archive download url, expired status, creation date, expiry date, update date, and associated workflow run.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGHArtifact(org.json.JSONObject jsonObject) Constructs a new GHArtifact instance with the provided JSON object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the archive download url of the artifact.Returns the creation date of the artifact.Returns the expiry date of the artifact.getName()Returns the name of the artifact.intReturns the size in bytes of the artifact.Returns the update date of the artifact.Returns the workflow run of the artifact.booleanReturns the expired status of the artifact.Von Klasse geerbte Methoden de.coho04.githubapi.bases.ClassBase
getEventsUrl, getHtmlUrl, getId, getNodeId, getUrl, toJSONObjectVon Klasse geerbte Methoden de.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrlVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.HttpRequestInterface
extractNextPageUrl, sendDeleteRequest, sendDeleteRequestWithResponseCode, sendGetRequest, sendGetRequestWithLinkHeader, sendGetRequestWithResponseCode, sendPatchRequest, sendPostRequest, sendPutRequestVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.JSONHelper
getArrayOrNull, getBooleanOrNull, getIntOrNull, getJSONArrayToStringList, getJSONObjectOrNull, getLocalDateOrNull, getLongOrNull, getStringOrNull
-
Konstruktordetails
-
GHArtifact
public GHArtifact(org.json.JSONObject jsonObject) Constructs a new GHArtifact instance with the provided JSON object.- Parameter:
jsonObject- the JSON object containing the artifact data
-
-
Methodendetails
-
getName
Returns the name of the artifact.- Gibt zurück:
- the name of the artifact
-
getUpdatedAt
Returns the update date of the artifact.- Gibt zurück:
- the update date of the artifact
-
getCreatedAt
Returns the creation date of the artifact.- Gibt zurück:
- the creation date of the artifact
-
getSizeInBytes
public int getSizeInBytes()Returns the size in bytes of the artifact.- Gibt zurück:
- the size in bytes of the artifact
-
getWorkflowRun
Returns the workflow run of the artifact.- Gibt zurück:
- the workflow run of the artifact
-
getExpiresAt
Returns the expiry date of the artifact.- Gibt zurück:
- the expiry date of the artifact
-
getArchiveDownloadUrl
Returns the archive download url of the artifact.- Gibt zurück:
- the archive download url of the artifact
-
isExpired
public boolean isExpired()Returns the expired status of the artifact.- Gibt zurück:
- the expired status of the artifact
-