Package de.coho04.githubapi.entities
Klasse GHPlan
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.entities.GHPlan
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
This class represents a GitHub Plan.
It provides methods for fetching data about the plan such as its name, space, private repositories, filled seats, and seats.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGHPlan(org.json.JSONObject jsonObject) Constructs a new GHPlan instance with the provided JSON object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintReturns the number of filled seats of the plan.getName()Returns the name of the plan.intReturns the number of private repositories of the plan.intgetSeats()Returns the number of seats of the plan.longgetSpace()Returns the space of the plan.org.json.JSONObjectReturns a JSON object representation of the GHPlan instance.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
-
GHPlan
public GHPlan(org.json.JSONObject jsonObject) Constructs a new GHPlan instance with the provided JSON object.- Parameter:
jsonObject- the JSON object containing the plan data
-
-
Methodendetails
-
getName
Returns the name of the plan.- Gibt zurück:
- the name of the plan
-
getFilledSeats
public int getFilledSeats()Returns the number of filled seats of the plan.- Gibt zurück:
- the number of filled seats of the plan
-
getPrivateRepos
public int getPrivateRepos()Returns the number of private repositories of the plan.- Gibt zurück:
- the number of private repositories of the plan
-
getSeats
public int getSeats()Returns the number of seats of the plan.- Gibt zurück:
- the number of seats of the plan
-
getSpace
public long getSpace()Returns the space of the plan.- Gibt zurück:
- the space of the plan
-
toJSONObject
public org.json.JSONObject toJSONObject()Returns a JSON object representation of the GHPlan instance.- Setzt außer Kraft:
toJSONObjectin KlasseGHBase- Gibt zurück:
- a JSON object representation of the GHPlan instance
-