java.lang.Object
java.lang.Record
it.auties.whatsapp.model.chat.ChatDisappear
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record ChatDisappear(ChatDisappear.Initiator initiator)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
A model that represents a chat disappear mode
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe constants of this enumerated type describe the various actors that can initialize disappearing messages in a chat -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChatDisappear.InitiatorThe field for theinitiatorrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChatDisappear(ChatDisappear.Initiator initiator) Creates an instance of aChatDisappearrecord class. -
Method Summary
-
Field Details
-
initiator
The field for theinitiatorrecord component.
-
-
Constructor Details
-
ChatDisappear
Creates an instance of aChatDisappearrecord class.- Parameters:
initiator- the value for theinitiatorrecord component
-
-
Method Details
-
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
initiator
Returns the value of theinitiatorrecord component.- Returns:
- the value of the
initiatorrecord component
-