Package de.coho04.githubapi.entities
Klasse GHEvent
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.entities.GHEvent
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
This class represents a GitHub Event.
It provides methods for fetching data about the event such as its id, type, actor, repo, payload, public status, and creation date.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGHEvent(org.json.JSONObject jsonObject) Constructs a new GHEvent instance with the provided JSON object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.json.JSONObjectgetActor()Returns the actor of the event.Returns the creation date of the event.getId()Returns the id of the event.org.json.JSONObjectReturns the payload of the event.org.json.JSONObjectgetRepo()Returns the repo of the event.getType()Returns the type of the event.booleanisPublic()Returns whether the event is public.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
-
GHEvent
public GHEvent(org.json.JSONObject jsonObject) Constructs a new GHEvent instance with the provided JSON object.- Parameter:
jsonObject- the JSON object containing the event data
-
-
Methodendetails
-
getType
Returns the type of the event.- Gibt zurück:
- the type of the event
-
getActor
public org.json.JSONObject getActor()Returns the actor of the event.- Gibt zurück:
- the actor of the event
-
getPayload
public org.json.JSONObject getPayload()Returns the payload of the event.- Gibt zurück:
- the payload of the event
-
getRepo
public org.json.JSONObject getRepo()Returns the repo of the event.- Gibt zurück:
- the repo of the event
-
getCreatedAt
Returns the creation date of the event.- Gibt zurück:
- the creation date of the event
-
getId
Returns the id of the event.- Gibt zurück:
- the id of the event
-
isPublic
public boolean isPublic()Returns whether the event is public.- Gibt zurück:
- whether the event is public
-