Record Class ReportChatMessage

java.lang.Object
java.lang.Record
com.mojang.authlib.minecraft.report.ReportChatMessage

public record ReportChatMessage(int index, UUID profileId, UUID sessionId, Instant timestamp, long salt, List<ByteBuffer> lastSeen, String message, ByteBuffer signature, boolean messageReported) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the index record component.
    private final List<ByteBuffer>
    The field for the lastSeen record component.
    private final String
    The field for the message record component.
    private final boolean
    The field for the messageReported record component.
    private final UUID
    The field for the profileId record component.
    private final long
    The field for the salt record component.
    private final UUID
    The field for the sessionId record component.
    private final ByteBuffer
    The field for the signature record component.
    private final Instant
    The field for the timestamp record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReportChatMessage(int index, UUID profileId, UUID sessionId, Instant timestamp, long salt, List<ByteBuffer> lastSeen, String message, ByteBuffer signature, boolean messageReported)
    Creates an instance of a ReportChatMessage record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the index record component.
    Returns the value of the lastSeen record component.
    Returns the value of the message record component.
    boolean
    Returns the value of the messageReported record component.
    Returns the value of the profileId record component.
    long
    Returns the value of the salt record component.
    Returns the value of the sessionId record component.
    Returns the value of the signature record component.
    Returns the value of the timestamp 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

    • index

      @SerializedName("index") private final int index
      The field for the index record component.
    • profileId

      @SerializedName("profileId") private final UUID profileId
      The field for the profileId record component.
    • sessionId

      @SerializedName("sessionId") private final UUID sessionId
      The field for the sessionId record component.
    • timestamp

      @SerializedName("timestamp") private final Instant timestamp
      The field for the timestamp record component.
    • salt

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

      @SerializedName("lastSeen") private final List<ByteBuffer> lastSeen
      The field for the lastSeen record component.
    • message

      @SerializedName("message") private final String message
      The field for the message record component.
    • signature

      @SerializedName("signature") private final ByteBuffer signature
      The field for the signature record component.
    • messageReported

      @SerializedName("messageReported") private final boolean messageReported
      The field for the messageReported record component.
  • Constructor Details

    • ReportChatMessage

      public ReportChatMessage(int index, UUID profileId, UUID sessionId, Instant timestamp, long salt, List<ByteBuffer> lastSeen, String message, ByteBuffer signature, boolean messageReported)
      Creates an instance of a ReportChatMessage record class.
      Parameters:
      index - the value for the index record component
      profileId - the value for the profileId record component
      sessionId - the value for the sessionId record component
      timestamp - the value for the timestamp record component
      salt - the value for the salt record component
      lastSeen - the value for the lastSeen record component
      message - the value for the message record component
      signature - the value for the signature record component
      messageReported - the value for the messageReported 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.
    • index

      @SerializedName("index") public int index()
      Returns the value of the index record component.
      Returns:
      the value of the index record component
    • profileId

      @SerializedName("profileId") public UUID profileId()
      Returns the value of the profileId record component.
      Returns:
      the value of the profileId record component
    • sessionId

      @SerializedName("sessionId") public UUID sessionId()
      Returns the value of the sessionId record component.
      Returns:
      the value of the sessionId record component
    • timestamp

      @SerializedName("timestamp") public Instant timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • salt

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

      @SerializedName("lastSeen") public List<ByteBuffer> lastSeen()
      Returns the value of the lastSeen record component.
      Returns:
      the value of the lastSeen record component
    • message

      @SerializedName("message") public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • signature

      @SerializedName("signature") public ByteBuffer signature()
      Returns the value of the signature record component.
      Returns:
      the value of the signature record component
    • messageReported

      @SerializedName("messageReported") public boolean messageReported()
      Returns the value of the messageReported record component.
      Returns:
      the value of the messageReported record component