java.lang.Object
de.florianmichael.classic4j.model.classicube.account.CCAccount

public final class CCAccount extends Object
This class represents an account on the ClassiCube server list. It is used by ClassiCubeHandler.
  • Field Details

  • Constructor Details

  • Method Details

    • fromJson

      public static CCAccount fromJson(com.google.gson.JsonObject object)
      Creates a new CCAccount from the given JSON object.
      Parameters:
      object - The JSON object to create the CCAccount from.
      Returns:
      The created CCAccount.
    • asJson

      public com.google.gson.JsonObject asJson()
      Converts this CCAccount to a JSON object.
      Returns:
      The JSON object.
    • token

      public String token()
    • username

      public String username()
    • password

      public String password()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object