Klasse GHLabel
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.entities.repositories.GHLabel
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
This class represents a GitHub label.
It provides methods for fetching data about the label such as its ID, URL, name, color, node ID, default status, and description.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGHLabel(org.json.JSONObject jsonObject) Constructs a new GHLabel instance with the provided JSON object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetColor()Returns the color of the label.Returns the description of the label.intgetId()Returns the ID of the label.getName()Returns the name of the label.Returns the node ID of the label.getUrl()Returns the URL of the label.booleanReturns whether the label is the default.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
-
GHLabel
public GHLabel(org.json.JSONObject jsonObject) Constructs a new GHLabel instance with the provided JSON object.- Parameter:
jsonObject- the JSON object containing the label data
-
-
Methodendetails
-
getNodeId
Returns the node ID of the label.- Gibt zurück:
- the node ID of the label
-
getUrl
Returns the URL of the label.- Gibt zurück:
- the URL of the label
-
getId
public int getId()Returns the ID of the label.- Gibt zurück:
- the ID of the label
-
getName
Returns the name of the label.- Gibt zurück:
- the name of the label
-
getColor
Returns the color of the label.- Gibt zurück:
- the color of the label
-
getDescription
Returns the description of the label.- Gibt zurück:
- the description of the label
-
isDefault
public boolean isDefault()Returns whether the label is the default.- Gibt zurück:
- true if the label is the default, false otherwise
-