Klasse GHPermission

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

public class GHPermission extends GHBase
Represents the permissions for a GitHub repository. This class provides methods to access the permissions associated with a repository.
  • 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