Record Class InviteCodeRequestDto

java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.InviteCodeRequestDto
All Implemented Interfaces:
ReflectionBasedSerialization

public record InviteCodeRequestDto(@Nullable String code, long realmId, boolean enabled, @Nullable Long expirationDate) extends Record implements ReflectionBasedSerialization
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final @Nullable String
    The field for the code record component.
    private final boolean
    The field for the enabled record component.
    private final @Nullable Long
    The field for the expirationDate record component.
    private final long
    The field for the realmId record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    InviteCodeRequestDto(@Nullable String code, long realmId, boolean enabled, @Nullable Long expirationDate)
    Creates an instance of a InviteCodeRequestDto record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the code record component.
    boolean
    Returns the value of the enabled record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the expirationDate record component.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the realmId record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • code

      @SerializedName("linkId") private final @Nullable String code
      The field for the code record component.
    • realmId

      @SerializedName("realmId") private final long realmId
      The field for the realmId record component.
    • enabled

      @SerializedName("enabled") private final boolean enabled
      The field for the enabled record component.
    • expirationDate

      @SerializedName("expirationDate") private final @Nullable Long expirationDate
      The field for the expirationDate record component.
  • Constructor Details

    • InviteCodeRequestDto

      public InviteCodeRequestDto(@Nullable String code, long realmId, boolean enabled, @Nullable Long expirationDate)
      Creates an instance of a InviteCodeRequestDto record class.
      Parameters:
      code - the value for the code record component
      realmId - the value for the realmId record component
      enabled - the value for the enabled record component
      expirationDate - the value for the expirationDate 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • code

      @SerializedName("linkId") public @Nullable String code()
      Returns the value of the code record component.
      Returns:
      the value of the code record component
    • realmId

      @SerializedName("realmId") public long realmId()
      Returns the value of the realmId record component.
      Returns:
      the value of the realmId record component
    • enabled

      @SerializedName("enabled") public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • expirationDate

      @SerializedName("expirationDate") public @Nullable Long expirationDate()
      Returns the value of the expirationDate record component.
      Returns:
      the value of the expirationDate record component