Class GHRepositoryCache
java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.GHRepositoryCache
- All Implemented Interfaces:
HttpRequestInterface
,JSONHelper
This class represents a GitHub Repository Cache.
It provides methods for fetching data about the repository cache such as its full name, active caches size in bytes, and active caches count.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T>
-
Constructor Summary
ConstructorsConstructorDescriptionGHRepositoryCache
(org.json.JSONObject jsonObject) Constructs a new GHRepositoryCache instance with the provided JSON object. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the active caches count of the repository cache.int
Returns the active caches size in bytes of the repository cache.Returns the full name of the repository 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
-
GHRepositoryCache
public GHRepositoryCache(org.json.JSONObject jsonObject) Constructs a new GHRepositoryCache instance with the provided JSON object.- Parameters:
jsonObject
- the JSON object containing the repository cache data
-
-
Method Details
-
getActiveCachesCount
public int getActiveCachesCount()Returns the active caches count of the repository cache.- Returns:
- the active caches count of the repository cache
-
getActiveCachesSizeInBytes
public int getActiveCachesSizeInBytes()Returns the active caches size in bytes of the repository cache.- Returns:
- the active caches size in bytes of the repository cache
-
getFullName
Returns the full name of the repository cache.- Returns:
- the full name of the repository cache
-