Package de.coho04.githubapi.bases
Klasse ClassBase
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.bases.ClassBase
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
- Bekannte direkte Unterklassen:
EntityBase,GHArtifact,GHIssue,GHMilestone,GHPackage,GHProject,GHPullRequest,GHRepository,GHTeam,GHWorkflowJob
ClassBase is a class that extends GHBase. It represents a base class for GitHub objects.
It contains several properties such as id, nodeId, htmlUrl, url, and eventsUrl.
These properties are initialized through a JSONObject.
- Seit:
- 2024-1.2
- Version:
- 1.0
- Autor:
- Coho04
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungClassBase(org.json.JSONObject jsonObject) Constructs a new ClassBase object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the eventsUrl of this ClassBase object.Returns the htmlUrl of this ClassBase object.intgetId()Returns the id of this ClassBase object.Returns the nodeId of this ClassBase object.getUrl()Returns the url of this ClassBase object.org.json.JSONObjectConverts this ClassBase object to a JSONObject.Von Klasse geerbte Methoden de.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrlVon 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
-
ClassBase
public ClassBase(org.json.JSONObject jsonObject) Constructs a new ClassBase object.- Parameter:
jsonObject- a JSONObject containing the data for initializing the ClassBase object.
-
-
Methodendetails
-
toJSONObject
public org.json.JSONObject toJSONObject()Converts this ClassBase object to a JSONObject.- Setzt außer Kraft:
toJSONObjectin KlasseGHBase- Gibt zurück:
- a JSONObject representation of this ClassBase object.
-
getNodeId
Returns the nodeId of this ClassBase object.- Gibt zurück:
- the nodeId of this ClassBase object.
-
getHtmlUrl
Returns the htmlUrl of this ClassBase object.- Gibt zurück:
- the htmlUrl of this ClassBase object.
-
getUrl
Returns the url of this ClassBase object.- Gibt zurück:
- the url of this ClassBase object.
-
getEventsUrl
Returns the eventsUrl of this ClassBase object.- Gibt zurück:
- the eventsUrl of this ClassBase object.
-
getId
public int getId()Returns the id of this ClassBase object.- Gibt zurück:
- the id of this ClassBase object.
-