Klasse GHPlan

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

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

      public String 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:
      toJSONObject in Klasse GHBase
      Gibt zurück:
      a JSON object representation of the GHPlan instance