Module it.auties.cobalt
Package it.auties.whatsapp.model.action
Record Class DeleteMessageForMeAction
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.action.DeleteMessageForMeAction
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,Action
public record DeleteMessageForMeAction(boolean deleteMedia, long messageTimestampSeconds)
extends Record
implements Action
A model clas that represents a message deleted for this client
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thedeleteMediarecord component.private final longThe field for themessageTimestampSecondsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDeleteMessageForMeAction(boolean deleteMedia, long messageTimestampSeconds) Creates an instance of aDeleteMessageForMeActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionThe type of this actionintThe version of this actionbooleanReturns the value of thedeleteMediarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.The name of this actionReturns when the deleted message was sentlongReturns the value of themessageTimestampSecondsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
deleteMedia
private final boolean deleteMediaThe field for thedeleteMediarecord component. -
messageTimestampSeconds
private final long messageTimestampSecondsThe field for themessageTimestampSecondsrecord component.
-
-
Constructor Details
-
DeleteMessageForMeAction
public DeleteMessageForMeAction(boolean deleteMedia, long messageTimestampSeconds) Creates an instance of aDeleteMessageForMeActionrecord class.- Parameters:
deleteMedia- the value for thedeleteMediarecord componentmessageTimestampSeconds- the value for themessageTimestampSecondsrecord component
-
-
Method Details
-
messageTimestamp
Returns when the deleted message was sent- Returns:
- an optional
-
indexName
The name of this action -
actionVersion
public int actionVersion()The version of this action- Specified by:
actionVersionin interfaceAction- Returns:
- a non-null string
-
actionType
The type of this action- Specified by:
actionTypein interfaceAction- Returns:
- a non-null 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. -
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. All components in this record class are compared with '=='. -
deleteMedia
public boolean deleteMedia()Returns the value of thedeleteMediarecord component.- Returns:
- the value of the
deleteMediarecord component
-
messageTimestampSeconds
public long messageTimestampSeconds()Returns the value of themessageTimestampSecondsrecord component.- Returns:
- the value of the
messageTimestampSecondsrecord component
-