java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.repositories.GHLabel
All Implemented Interfaces:
HttpRequestInterface, JSONHelper

public class GHLabel extends GHBase
This class represents a GitHub label. It provides methods for fetching data about the label such as its ID, URL, name, color, node ID, default status, and description.
  • Constructor Details

    • GHLabel

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

    • getNodeId

      public String getNodeId()
      Returns the node ID of the label.
      Returns:
      the node ID of the label
    • getUrl

      public String getUrl()
      Returns the URL of the label.
      Returns:
      the URL of the label
    • getId

      public int getId()
      Returns the ID of the label.
      Returns:
      the ID of the label
    • getName

      public String getName()
      Returns the name of the label.
      Returns:
      the name of the label
    • getColor

      public String getColor()
      Returns the color of the label.
      Returns:
      the color of the label
    • getDescription

      public String getDescription()
      Returns the description of the label.
      Returns:
      the description of the label
    • isDefault

      public boolean isDefault()
      Returns whether the label is the default.
      Returns:
      true if the label is the default, false otherwise