Class ClassBase

java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.bases.ClassBase
All Implemented Interfaces:
HttpRequestInterface, JSONHelper
Direct Known Subclasses:
EntityBase, GHArtifact, GHIssue, GHMilestone, GHPackage, GHProject, GHPullRequest, GHRepository, GHTeam, GHWorkflowJob

public class ClassBase extends GHBase
ClassBase is a class that extends GHBase. It represents a base class for GitHub objects. It contains several properties such as id, nodeId, htmlUrl, url, and eventsUrl. These properties are initialized through a JSONObject.
Since:
2024-1.2
Version:
1.0
Author:
Coho04
  • Constructor Details

    • ClassBase

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

    • toJSONObject

      public org.json.JSONObject toJSONObject()
      Converts this ClassBase object to a JSONObject.
      Overrides:
      toJSONObject in class GHBase
      Returns:
      a JSONObject representation of this ClassBase object.
    • getNodeId

      public String getNodeId()
      Returns the nodeId of this ClassBase object.
      Returns:
      the nodeId of this ClassBase object.
    • getHtmlUrl

      public String getHtmlUrl()
      Returns the htmlUrl of this ClassBase object.
      Returns:
      the htmlUrl of this ClassBase object.
    • getUrl

      public String getUrl()
      Returns the url of this ClassBase object.
      Returns:
      the url of this ClassBase object.
    • getEventsUrl

      public String getEventsUrl()
      Returns the eventsUrl of this ClassBase object.
      Returns:
      the eventsUrl of this ClassBase object.
    • getId

      public int getId()
      Returns the id of this ClassBase object.
      Returns:
      the id of this ClassBase object.