Record Class PlayerAttributes.Privileges

java.lang.Object
java.lang.Record
lol.trq.alts.account.PlayerAttributes.Privileges
Record Components:
onlineChat - whether online chat is permitted
multiplayerServer - whether joining multiplayer servers is permitted
multiplayerRealms - whether joining Realms is permitted
telemetry - whether required telemetry is enabled
optionalTelemetry - whether optional telemetry is enabled
Enclosing class:
PlayerAttributes

public static record PlayerAttributes.Privileges(Boolean onlineChat, Boolean multiplayerServer, Boolean multiplayerRealms, Boolean telemetry, Boolean optionalTelemetry) extends Record
The privileges block. Each member is whether that privilege is enabled, or null when the service did not state it.
Since:
0.12.0
  • Constructor Details

    • Privileges

      public Privileges(Boolean onlineChat, Boolean multiplayerServer, Boolean multiplayerRealms, Boolean telemetry, Boolean optionalTelemetry)
      Creates an instance of a Privileges record class.
      Parameters:
      onlineChat - the value for the onlineChat record component
      multiplayerServer - the value for the multiplayerServer record component
      multiplayerRealms - the value for the multiplayerRealms record component
      telemetry - the value for the telemetry record component
      optionalTelemetry - the value for the optionalTelemetry record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • onlineChat

      @SerializedName("onlineChat") public Boolean onlineChat()
      Returns the value of the onlineChat record component.
      Returns:
      the value of the onlineChat record component
    • multiplayerServer

      @SerializedName("multiplayerServer") public Boolean multiplayerServer()
      Returns the value of the multiplayerServer record component.
      Returns:
      the value of the multiplayerServer record component
    • multiplayerRealms

      @SerializedName("multiplayerRealms") public Boolean multiplayerRealms()
      Returns the value of the multiplayerRealms record component.
      Returns:
      the value of the multiplayerRealms record component
    • telemetry

      @SerializedName("telemetry") public Boolean telemetry()
      Returns the value of the telemetry record component.
      Returns:
      the value of the telemetry record component
    • optionalTelemetry

      @SerializedName("optionalTelemetry") public Boolean optionalTelemetry()
      Returns the value of the optionalTelemetry record component.
      Returns:
      the value of the optionalTelemetry record component