Class EntityBase

All Implemented Interfaces:
HttpRequestInterface, JSONHelper
Direct Known Subclasses:
GHOrganisation, GHUser

public class EntityBase extends ClassBase
EntityBase is a class that extends ClassBase. It represents a base entity for GitHub objects. It contains several properties such as type, login, reposUrl, and avatarUrl. These properties are initialized through a JSONObject.
Since:
2024-1.2
Version:
1.0
Author:
Coho04
  • Constructor Details

    • EntityBase

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

    • toJSONObject

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

      public String getReposUrl()
      Returns the reposUrl of this EntityBase object.
      Returns:
      the reposUrl of this EntityBase object.
    • getLogin

      public String getLogin()
      Returns the login of this EntityBase object.
      Returns:
      the login of this EntityBase object.
    • getUsername

      public String getUsername()
      Returns the login of this EntityBase object.
      Returns:
      the login of this EntityBase object.
    • getAvatarUrl

      public String getAvatarUrl()
      Returns the avatarUrl of this EntityBase object.
      Returns:
      the avatarUrl of this EntityBase object.
    • getType

      public String getType()
      Returns the type of this EntityBase object.
      Returns:
      the type of this EntityBase object.