Class GHPlan

java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.GHPlan
All Implemented Interfaces:
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.
  • Constructor Details

    • GHPlan

      public GHPlan(org.json.JSONObject jsonObject)
      Constructs a new GHPlan instance with the provided JSON object.
      Parameters:
      jsonObject - the JSON object containing the plan data
  • Method Details

    • getName

      public String getName()
      Returns the name of the plan.
      Returns:
      the name of the plan
    • getFilledSeats

      public int getFilledSeats()
      Returns the number of filled seats of the plan.
      Returns:
      the number of filled seats of the plan
    • getPrivateRepos

      public int getPrivateRepos()
      Returns the number of private repositories of the plan.
      Returns:
      the number of private repositories of the plan
    • getSeats

      public int getSeats()
      Returns the number of seats of the plan.
      Returns:
      the number of seats of the plan
    • getSpace

      public long getSpace()
      Returns the space of the plan.
      Returns:
      the space of the plan
    • toJSONObject

      public org.json.JSONObject toJSONObject()
      Returns a JSON object representation of the GHPlan instance.
      Overrides:
      toJSONObject in class GHBase
      Returns:
      a JSON object representation of the GHPlan instance