Package de.coho04.githubapi.entities
Klasse GHPermission
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.entities.GHPermission
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
Represents the permissions for a GitHub repository.
This class provides methods to access the permissions associated with a repository.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGHPermission(org.json.JSONObject jsonObject) Constructs a new GHPermission instance with the provided JSON object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanisAdmin()Returns whether the admin permission is granted.booleanReturns whether the maintain permission is granted.booleanisPull()Returns whether the pull permission is granted.booleanisPush()Returns whether the push permission is granted.booleanisTriage()Returns whether the triage permission is granted.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
-
GHPermission
public GHPermission(org.json.JSONObject jsonObject) Constructs a new GHPermission instance with the provided JSON object.- Parameter:
jsonObject- the JSON object containing the permission data
-
-
Methodendetails
-
isPull
public boolean isPull()Returns whether the pull permission is granted.- Gibt zurück:
- true if the pull permission is granted, false otherwise
-
isMaintain
public boolean isMaintain()Returns whether the maintain permission is granted.- Gibt zurück:
- true if the maintain permission is granted, false otherwise
-
isAdmin
public boolean isAdmin()Returns whether the admin permission is granted.- Gibt zurück:
- true if the admin permission is granted, false otherwise
-
isTriage
public boolean isTriage()Returns whether the triage permission is granted.- Gibt zurück:
- true if the triage permission is granted, false otherwise
-
isPush
public boolean isPush()Returns whether the push permission is granted.- Gibt zurück:
- true if the push permission is granted, false otherwise
-