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 Link icon

    • GHLabel Link icon

      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 Link icon

    • getNodeId Link icon

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

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

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

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

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

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

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