Class ShieldBreakAPI.PlayerResponse

java.lang.Object
dev.sbmc.freezy.ShieldBreakAPI.PlayerResponse
Enclosing class:
ShieldBreakAPI

public static class ShieldBreakAPI.PlayerResponse extends Object
Response object for player endpoints.
  • Constructor Details

    • PlayerResponse

      public PlayerResponse(String json)
      Constructs a PlayerResponse from JSON.
      Parameters:
      json - the JSON response string
  • Method Details

    • getUuid

      public String getUuid()
      Returns the player's UUID.
      Returns:
      the player's UUID
    • getName

      public String getName()
      Returns the player's name.
      Returns:
      the player's name
    • getCreated

      public Boolean getCreated()
      Returns whether the player was created.
      Returns:
      true if the player was created, false if updated