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
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theindexrecord component.private final List<ByteBuffer> The field for thelastSeenrecord component.private final StringThe field for themessagerecord component.private final booleanThe field for themessageReportedrecord component.private final UUIDThe field for theprofileIdrecord component.private final longThe field for thesaltrecord component.private final UUIDThe field for thesessionIdrecord component.private final ByteBufferThe field for thesignaturerecord component.private final InstantThe field for thetimestamprecord component. -
Constructor Summary
ConstructorsConstructorDescriptionReportChatMessage(int index, UUID profileId, UUID sessionId, Instant timestamp, long salt, List<ByteBuffer> lastSeen, String message, ByteBuffer signature, boolean messageReported) Creates an instance of aReportChatMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.lastSeen()Returns the value of thelastSeenrecord component.message()Returns the value of themessagerecord component.booleanReturns the value of themessageReportedrecord component.Returns the value of theprofileIdrecord component.longsalt()Returns the value of thesaltrecord component.Returns the value of thesessionIdrecord component.Returns the value of thesignaturerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
index
@SerializedName("index") private final int indexThe field for theindexrecord component. -
profileId
The field for theprofileIdrecord component. -
sessionId
The field for thesessionIdrecord component. -
timestamp
The field for thetimestamprecord component. -
salt
@SerializedName("salt") private final long saltThe field for thesaltrecord component. -
lastSeen
The field for thelastSeenrecord component. -
message
The field for themessagerecord component. -
signature
The field for thesignaturerecord component. -
messageReported
@SerializedName("messageReported") private final boolean messageReportedThe field for themessageReportedrecord 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 aReportChatMessagerecord class.- Parameters:
index- the value for theindexrecord componentprofileId- the value for theprofileIdrecord componentsessionId- the value for thesessionIdrecord componenttimestamp- the value for thetimestamprecord componentsalt- the value for thesaltrecord componentlastSeen- the value for thelastSeenrecord componentmessage- the value for themessagerecord componentsignature- the value for thesignaturerecord componentmessageReported- the value for themessageReportedrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
index
@SerializedName("index") public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
profileId
Returns the value of theprofileIdrecord component.- Returns:
- the value of the
profileIdrecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
salt
@SerializedName("salt") public long salt()Returns the value of thesaltrecord component.- Returns:
- the value of the
saltrecord component
-
lastSeen
Returns the value of thelastSeenrecord component.- Returns:
- the value of the
lastSeenrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
signature
Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-
messageReported
@SerializedName("messageReported") public boolean messageReported()Returns the value of themessageReportedrecord component.- Returns:
- the value of the
messageReportedrecord component
-