Class GHGitignoreTemplate
java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.GHGitignoreTemplate
- All Implemented Interfaces:
HttpRequestInterface
,JSONHelper
This class represents a GitHub Gitignore Template.
It provides methods for fetching data about the gitignore template such as its name and source.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T>
-
Constructor Summary
ConstructorsConstructorDescriptionGHGitignoreTemplate
(org.json.JSONObject jsonObject) Constructs a new GHGitignoreTemplate instance with the provided JSON object. -
Method Summary
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
-
GHGitignoreTemplate
public GHGitignoreTemplate(org.json.JSONObject jsonObject) Constructs a new GHGitignoreTemplate instance with the provided JSON object.- Parameters:
jsonObject
- the JSON object containing the gitignore template data
-
-
Method Details
-
getName
Returns the name of the gitignore template.- Returns:
- the name of the gitignore template
-
getSource
Returns the source of the gitignore template.- Returns:
- the source of the gitignore template
-