java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.entities.repositories.GHFile
Alle implementierten Schnittstellen:
HttpRequestInterface, JSONHelper

public class GHFile extends GHBase
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.
  • 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

      public String getHtmlUrl()
      Returns the HTML URL of the file.
      Gibt zurück:
      the HTML URL of the file
    • getUrl

      public String getUrl()
      Returns the URL of the file.
      Gibt zurück:
      the URL of the file
    • getName

      public String 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

      public String getDownloadUrl()
      Returns the download URL of the file.
      Gibt zurück:
      the download URL of the file
    • getGitUrl

      public String getGitUrl()
      Returns the Git URL of the file.
      Gibt zurück:
      the Git URL of the file
    • getPath

      public String getPath()
      Returns the path of the file.
      Gibt zurück:
      the path of the file
    • getSha

      public String getSha()
      Returns the SHA of the file.
      Gibt zurück:
      the SHA of the file
    • getType

      public String getType()
      Returns the type of the file.
      Gibt zurück:
      the type of the file