Class TcdWebApiPerson

java.lang.Object
io.github.thecsdev.tcdcommons.util.io.http.TcdWebApiPerson

public final class TcdWebApiPerson extends Object
Similar to Fabric loader's Person, but with extra features.
  • Constructor Details

    • TcdWebApiPerson

      public TcdWebApiPerson(com.google.gson.JsonObject data) throws IOException
      Throws:
      IOException
  • Method Details

    • getJson

      public final com.google.gson.JsonObject getJson()
      Returns the JsonObject for this object.
    • getName

      public final String getName()
      Returns the person's name.
    • getAvatarUrl

      @Nullable public final @Nullable URL getAvatarUrl()
      Returns the URL of the "avatar image" or "profile picture" assigned to the person.
    • getContact

      public final TcdWebApiPerson.TcdContactInformation getContact()
      Returns TcdWebApiPerson.TcdContactInformation containing the person's contact information such as links.