Class GHProject

All Implemented Interfaces:
HttpRequestInterface, JSONHelper

public class GHProject extends ClassBase
GHProject is a class that extends ClassBase. It represents a GitHub project. It contains several properties such as ownerUrl, columnsUrl, name, body, number, state, creator, createdAt, updatedAt, organizationPermission, and isPrivate. These properties are initialized through a JSONObject.
Since:
2024-1.2
Version:
1.0
Author:
Coho04
  • Constructor Details

    • GHProject

      public GHProject(Github github, org.json.JSONObject jsonObject)
      Constructs a new GHProject object.
      Parameters:
      jsonObject - a JSONObject containing the data for initializing the GHProject object.
  • Method Details

    • getName

      public String getName()
      Returns the name of this GHProject object.
      Returns:
      the name of this GHProject object.
    • getCreator

      public GHUser getCreator()
      Returns the creator of this GHProject object.
      Returns:
      the creator of this GHProject object.
    • getNumber

      public int getNumber()
      Returns the number of this GHProject object.
      Returns:
      the number of this GHProject object.
    • getBody

      public String getBody()
      Returns the body of this GHProject object.
      Returns:
      the body of this GHProject object.
    • getColumnsUrl

      public String getColumnsUrl()
      Returns the columnsUrl of this GHProject object.
      Returns:
      the columnsUrl of this GHProject object.
    • getCreatedAt

      public OffsetDateTime getCreatedAt()
      Returns the createdAt time of this GHProject object.
      Returns:
      the createdAt time of this GHProject object.
    • getOrganizationPermission

      public String getOrganizationPermission()
      Returns the organizationPermission of this GHProject object.
      Returns:
      the organizationPermission of this GHProject object.
    • getOwnerUrl

      public String getOwnerUrl()
      Returns the ownerUrl of this GHProject object.
      Returns:
      the ownerUrl of this GHProject object.
    • getState

      public String getState()
      Returns the state of this GHProject object.
      Returns:
      the state of this GHProject object.
    • getUpdatedAt

      public OffsetDateTime getUpdatedAt()
      Returns the updatedAt time of this GHProject object.
      Returns:
      the updatedAt time of this GHProject object.
    • isPrivate

      public boolean isPrivate()
      Returns the isPrivate of this GHProject object.
      Returns:
      the isPrivate of this GHProject object.