Klasse GHTeam

Alle implementierten Schnittstellen:
HttpRequestInterface, JSONHelper

public class GHTeam extends ClassBase
This class represents a GitHub Team. It provides methods for fetching data about the team such as its name, slug, description, privacy, notification setting, permission, members URL, repositories URL, creation date, update date, members count, repos count, and parent team.
  • Konstruktordetails

    • GHTeam

      public GHTeam(org.json.JSONObject jsonObject)
      Constructs a new GHTeam instance with the provided JSON object.
      Parameter:
      jsonObject - the JSON object containing the team data
  • Methodendetails

    • getTeamByName

      public static GHTeam getTeamByName(Github github, String name, GHOrganisation organisation)
      Returns a GHTeam instance by team name.
      Parameter:
      github - the GitHub instance
      name - the team name
      organisation - the GHOrganisation instance
      Gibt zurück:
      the GHTeam instance
    • getDescription

      public String getDescription()
      Returns the description of the team.
      Gibt zurück:
      the description of the team
    • getMembersUrl

      public String getMembersUrl()
      Returns the members URL of the team.
      Gibt zurück:
      the members URL of the team
    • getName

      public String getName()
      Returns the name of the team.
      Gibt zurück:
      the name of the team
    • getNotificationSetting

      public String getNotificationSetting()
      Returns the notification setting of the team.
      Gibt zurück:
      the notification setting of the team
    • getParent

      public GHTeam getParent()
      Returns the parent team of the team.
      Gibt zurück:
      the parent team of the team
    • getPermission

      public String getPermission()
      Returns the permission of the team.
      Gibt zurück:
      the permission of the team
    • getPrivacy

      public String getPrivacy()
      Returns the privacy of the team.
      Gibt zurück:
      the privacy of the team
    • getRepositoriesUrl

      public String getRepositoriesUrl()
      Returns the repositories URL of the team.
      Gibt zurück:
      the repositories URL of the team
    • getSlug

      public String getSlug()
      Returns the slug of the team.
      Gibt zurück:
      the slug of the team
    • getCreatedAt

      public OffsetDateTime getCreatedAt()
      Returns the members count of the team.
      Gibt zurück:
      the members count of the team
    • getUpdatedAt

      public OffsetDateTime getUpdatedAt()
      Returns the repos count of the team.
      Gibt zurück:
      the repos count of the team
    • getMembersCount

      public int getMembersCount()
      Returns the members count of the team.
      Gibt zurück:
      the members count of the team
    • getReposCount

      public int getReposCount()
      Returns the repos count of the team.
      Gibt zurück:
      the repos count of the team