Module it.auties.cobalt
Record Class KeepInChatMessage
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.message.standard.KeepInChatMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,Message
public record KeepInChatMessage(ChatMessageKey key, KeepInChatType keepType, long timestampMilliseconds)
extends Record
implements Message
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final KeepInChatTypeThe field for thekeepTyperecord component.private final ChatMessageKeyThe field for thekeyrecord component.private final longThe field for thetimestampMillisecondsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionKeepInChatMessage(ChatMessageKey key, KeepInChatType keepType, long timestampMilliseconds) Creates an instance of aKeepInChatMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Return message categoryfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.keepType()Returns the value of thekeepTyperecord component.key()Returns the value of thekeyrecord component.longReturns the value of thetimestampMillisecondsrecord component.final StringtoString()Returns a string representation of this record class.type()Return message type
-
Field Details
-
key
The field for thekeyrecord component. -
keepType
The field for thekeepTyperecord component. -
timestampMilliseconds
private final long timestampMillisecondsThe field for thetimestampMillisecondsrecord component.
-
-
Constructor Details
-
KeepInChatMessage
Creates an instance of aKeepInChatMessagerecord class.- Parameters:
key- the value for thekeyrecord componentkeepType- the value for thekeepTyperecord componenttimestampMilliseconds- the value for thetimestampMillisecondsrecord component
-
-
Method Details
-
type
Description copied from interface:MessageReturn message type -
category
Description copied from interface:MessageReturn message category -
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. -
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. -
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 '=='. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
keepType
Returns the value of thekeepTyperecord component.- Returns:
- the value of the
keepTyperecord component
-
timestampMilliseconds
public long timestampMilliseconds()Returns the value of thetimestampMillisecondsrecord component.- Returns:
- the value of the
timestampMillisecondsrecord component
-