Class GHPackage
java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.bases.ClassBase
io.github.coho04.githubapi.entities.GHPackage
- All Implemented Interfaces:
HttpRequestInterface
,JSONHelper
This class represents a GitHub Package.
It provides methods for fetching data about the package such as its name, package type, owner, version count, visibility, creation date, and update date.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the creation date of the package.getName()
Returns the name of the package.getOwner()
Returns the owner of the package.Returns the package type of the package.Returns the update date of the package.Returns the version count of the package.Returns the visibility of the package.Methods inherited from class io.github.coho04.githubapi.bases.ClassBase
getEventsUrl, getHtmlUrl, getId, getNodeId, getUrl, toJSONObject
Methods inherited from class io.github.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrl
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
-
GHPackage
Constructs a new GHPackage instance with the provided JSON object.- Parameters:
jsonObject
- the JSON object containing the package data
-
-
Method Details
-
getName
Returns the name of the package.- Returns:
- the name of the package
-
getUpdatedAt
Returns the update date of the package.- Returns:
- the update date of the package
-
getCreatedAt
Returns the creation date of the package.- Returns:
- the creation date of the package
-
getOwner
Returns the owner of the package.- Returns:
- the owner of the package
-
getPackageType
Returns the package type of the package.- Returns:
- the package type of the package
-
getVersionCount
Returns the version count of the package.- Returns:
- the version count of the package
-
getVisibility
Returns the visibility of the package.- Returns:
- the visibility of the package
-