Klasse GHFile
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.entities.repositories.GHFile
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
This class represents a GitHub file.
It provides methods for fetching data about the file such as its name, path, SHA, size, URLs, and type.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGHFile(org.json.JSONObject jsonObject) Constructs a new GHFile instance with the provided JSON object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the download URL of the file.Returns the Git URL of the file.Returns the HTML URL of the file.getName()Returns the name of the file.getPath()Returns the path of the file.getSha()Returns the SHA of the file.intgetSize()Returns the size of the file.getType()Returns the type of the file.getUrl()Returns the URL of the file.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
-
GHFile
public GHFile(org.json.JSONObject jsonObject) Constructs a new GHFile instance with the provided JSON object.- Parameter:
jsonObject- the JSON object containing the file data
-
-
Methodendetails
-
getHtmlUrl
Returns the HTML URL of the file.- Gibt zurück:
- the HTML URL of the file
-
getUrl
Returns the URL of the file.- Gibt zurück:
- the URL of the file
-
getName
Returns the name of the file.- Gibt zurück:
- the name of the file
-
getSize
public int getSize()Returns the size of the file.- Gibt zurück:
- the size of the file
-
getDownloadUrl
Returns the download URL of the file.- Gibt zurück:
- the download URL of the file
-
getGitUrl
Returns the Git URL of the file.- Gibt zurück:
- the Git URL of the file
-
getPath
Returns the path of the file.- Gibt zurück:
- the path of the file
-
getSha
Returns the SHA of the file.- Gibt zurück:
- the SHA of the file
-
getType
Returns the type of the file.- Gibt zurück:
- the type of the file
-