Package de.coho04.githubapi.entities
Klasse GHHook
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.entities.GHHook
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
This class represents a GitHub Hook.
It provides methods for fetching data about the hook such as its id, url, pingUrl, deliveriesUrl, name, events, active status, config, updatedAt, createdAt, and type.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGHHook(org.json.JSONObject jsonObject) Constructs a new GHHook instance with the provided JSON object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.json.JSONObjectReturns the config of the hook.Returns the creation date of the hook.Returns the deliveries url of the hook.Returns the events of the hook.intgetId()Returns the id of the hook.getName()Returns the name of the hook.Returns the ping url of the hook.getType()Returns the type of the hook.Returns the update date of the hook.getUrl()Returns the url of the hook.booleanisActive()Returns whether the hook is active.Von Klasse geerbte Methoden de.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrl, toJSONObjectVon 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
-
GHHook
public GHHook(org.json.JSONObject jsonObject) Constructs a new GHHook instance with the provided JSON object.- Parameter:
jsonObject- the JSON object containing the hook data
-
-
Methodendetails
-
getCreatedAt
Returns the creation date of the hook.- Gibt zurück:
- the creation date of the hook
-
getUpdatedAt
Returns the update date of the hook.- Gibt zurück:
- the update date of the hook
-
getName
Returns the name of the hook.- Gibt zurück:
- the name of the hook
-
getId
public int getId()Returns the id of the hook.- Gibt zurück:
- the id of the hook
-
getConfig
public org.json.JSONObject getConfig()Returns the config of the hook.- Gibt zurück:
- the config of the hook
-
getEvents
Returns the events of the hook.- Gibt zurück:
- the events of the hook
-
getDeliveriesUrl
Returns the deliveries url of the hook.- Gibt zurück:
- the deliveries url of the hook
-
getPingUrl
Returns the ping url of the hook.- Gibt zurück:
- the ping url of the hook
-
getType
Returns the type of the hook.- Gibt zurück:
- the type of the hook
-
getUrl
Returns the url of the hook.- Gibt zurück:
- the url of the hook
-
isActive
public boolean isActive()Returns whether the hook is active.- Gibt zurück:
- whether the hook is active
-