Module it.auties.cobalt
Package it.auties.whatsapp.model.action
Record Class RecentEmojiWeightsAction
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.action.RecentEmojiWeightsAction
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,Action
public record RecentEmojiWeightsAction(List<RecentEmojiWeight> weights)
extends Record
implements Action
A model clas that represents a change in the weight of recent emojis
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<RecentEmojiWeight> The field for theweightsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRecentEmojiWeightsAction(List<RecentEmojiWeight> weights) Creates an instance of aRecentEmojiWeightsActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionAlways throws an exception as this action cannot be serializedintAlways throws an exception as this action cannot be serializedfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Always throws an exception as this action cannot be serializedfinal StringtoString()Returns a string representation of this record class.weights()Returns the value of theweightsrecord component.
-
Field Details
-
weights
The field for theweightsrecord component.
-
-
Constructor Details
-
RecentEmojiWeightsAction
Creates an instance of aRecentEmojiWeightsActionrecord class.- Parameters:
weights- the value for theweightsrecord component
-
-
Method Details
-
indexName
Always throws an exception as this action cannot be serialized -
actionVersion
public int actionVersion()Always throws an exception as this action cannot be serialized- Specified by:
actionVersionin interfaceAction- Returns:
- an exception
-
actionType
Always throws an exception as this action cannot be serialized- Specified by:
actionTypein interfaceAction- Returns:
- an exception
-
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 withObjects::equals(Object,Object). -
weights
Returns the value of theweightsrecord component.- Returns:
- the value of the
weightsrecord component
-