Class GHActionsCache
java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.GHActionsCache
- All Implemented Interfaces:
HttpRequestInterface
,JSONHelper
This class represents a GitHub Actions Cache.
It provides methods for fetching data about the actions cache such as its id, ref, key, version, last accessed date, creation date, and size in bytes.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T>
-
Constructor Summary
ConstructorsConstructorDescriptionGHActionsCache
(org.json.JSONObject jsonObject) Constructs a new GHActionsCache instance with the provided JSON object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the creation date of the actions cache.int
getId()
Returns the id of the actions cache.getKey()
Returns the key of the actions cache.Returns the last accessed date of the actions cache.getRef()
Returns the ref of the actions cache.int
Returns the size in bytes of the actions cache.Returns the version of the actions cache.Methods inherited from class io.github.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrl, toJSONObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.coho04.githubapi.interfaces.HttpRequestInterface
extractNextPageUrl, sendDeleteRequest, sendDeleteRequestWithResponseCode, sendGetRequest, sendGetRequestWithLinkHeader, sendGetRequestWithResponseCode, sendPatchRequest, sendPostRequest, sendPutRequest
Methods inherited from interface io.github.coho04.githubapi.interfaces.JSONHelper
getArrayOrNull, getBooleanOrNull, getIntOrNull, getJSONArrayToStringList, getJSONObjectOrNull, getLocalDateOrNull, getLongOrNull, getStringOrNull
-
Constructor Details
-
GHActionsCache
public GHActionsCache(org.json.JSONObject jsonObject) Constructs a new GHActionsCache instance with the provided JSON object.- Parameters:
jsonObject
- the JSON object containing the actions cache data
-
-
Method Details
-
getId
public int getId()Returns the id of the actions cache.- Returns:
- the id of the actions cache
-
getCreatedAt
Returns the creation date of the actions cache.- Returns:
- the creation date of the actions cache
-
getSizeInBytes
public int getSizeInBytes()Returns the size in bytes of the actions cache.- Returns:
- the size in bytes of the actions cache
-
getLastAccessedAt
Returns the last accessed date of the actions cache.- Returns:
- the last accessed date of the actions cache
-
getKey
Returns the key of the actions cache.- Returns:
- the key of the actions cache
-
getRef
Returns the ref of the actions cache.- Returns:
- the ref of the actions cache
-
getVersion
Returns the version of the actions cache.- Returns:
- the version of the actions cache
-