Module it.auties.cobalt
Record Class ButtonRowOpaqueData
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.button.misc.ButtonRowOpaqueData
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record ButtonRowOpaqueData(Optional<ButtonOpaqueData> currentMessage, Optional<ButtonOpaqueData> quotedMessage)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
A model class that represents data about a row
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<ButtonOpaqueData> The field for thecurrentMessagerecord component.private final Optional<ButtonOpaqueData> The field for thequotedMessagerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionButtonRowOpaqueData(Optional<ButtonOpaqueData> currentMessage, Optional<ButtonOpaqueData> quotedMessage) Creates an instance of aButtonRowOpaqueDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentMessagerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thequotedMessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
currentMessage
The field for thecurrentMessagerecord component. -
quotedMessage
The field for thequotedMessagerecord component.
-
-
Constructor Details
-
ButtonRowOpaqueData
public ButtonRowOpaqueData(Optional<ButtonOpaqueData> currentMessage, Optional<ButtonOpaqueData> quotedMessage) Creates an instance of aButtonRowOpaqueDatarecord class.- Parameters:
currentMessage- the value for thecurrentMessagerecord componentquotedMessage- the value for thequotedMessagerecord component
-
-
Method Details
-
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). -
currentMessage
Returns the value of thecurrentMessagerecord component.- Returns:
- the value of the
currentMessagerecord component
-
quotedMessage
Returns the value of thequotedMessagerecord component.- Returns:
- the value of the
quotedMessagerecord component
-