Package de.coho04.githubapi.bases
Klasse EntityBase
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.bases.ClassBase
de.coho04.githubapi.bases.EntityBase
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
- Bekannte direkte Unterklassen:
GHOrganisation,GHUser
EntityBase is a class that extends ClassBase. It represents a base entity for GitHub objects.
It contains several properties such as type, login, reposUrl, and avatarUrl.
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
KonstruktorenKonstruktorBeschreibungEntityBase(org.json.JSONObject jsonObject) Constructs a new EntityBase object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the avatarUrl of this EntityBase object.getLogin()Returns the login of this EntityBase object.Returns the reposUrl of this EntityBase object.getType()Returns the type of this EntityBase object.Returns the login of this EntityBase object.org.json.JSONObjectConverts this EntityBase object to a JSONObject.Von Klasse geerbte Methoden de.coho04.githubapi.bases.ClassBase
getEventsUrl, getHtmlUrl, getId, getNodeId, getUrlVon 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
-
EntityBase
public EntityBase(org.json.JSONObject jsonObject) Constructs a new EntityBase object.- Parameter:
jsonObject- a JSONObject containing the data for initializing the EntityBase object.
-
-
Methodendetails
-
toJSONObject
public org.json.JSONObject toJSONObject()Converts this EntityBase object to a JSONObject.- Setzt außer Kraft:
toJSONObjectin KlasseClassBase- Gibt zurück:
- a JSONObject representation of this EntityBase object.
-
getReposUrl
Returns the reposUrl of this EntityBase object.- Gibt zurück:
- the reposUrl of this EntityBase object.
-
getLogin
Returns the login of this EntityBase object.- Gibt zurück:
- the login of this EntityBase object.
-
getUsername
Returns the login of this EntityBase object.- Gibt zurück:
- the login of this EntityBase object.
-
getAvatarUrl
Returns the avatarUrl of this EntityBase object.- Gibt zurück:
- the avatarUrl of this EntityBase object.
-
getType
Returns the type of this EntityBase object.- Gibt zurück:
- the type of this EntityBase object.
-