Module it.auties.cobalt
Record Class SendPaymentMessage
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.message.payment.SendPaymentMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,Message,PaymentMessage
public record SendPaymentMessage(Optional<MessageContainer> noteMessage, ChatMessageKey requestMessageKey, Optional<PaymentBackground> background)
extends Record
implements PaymentMessage
A model class that represents a message to confirm a
RequestPaymentMessage.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<PaymentBackground> The field for thebackgroundrecord component.private final Optional<MessageContainer> The field for thenoteMessagerecord component.private final ChatMessageKeyThe field for therequestMessageKeyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSendPaymentMessage(Optional<MessageContainer> noteMessage, ChatMessageKey requestMessageKey, Optional<PaymentBackground> background) Creates an instance of aSendPaymentMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundrecord 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 thenoteMessagerecord component.Returns the value of therequestMessageKeyrecord component.final StringtoString()Returns a string representation of this record class.type()Return message typeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.auties.whatsapp.model.message.model.PaymentMessage
category
-
Field Details
-
noteMessage
The field for thenoteMessagerecord component. -
requestMessageKey
The field for therequestMessageKeyrecord component. -
background
The field for thebackgroundrecord component.
-
-
Constructor Details
-
SendPaymentMessage
public SendPaymentMessage(Optional<MessageContainer> noteMessage, ChatMessageKey requestMessageKey, Optional<PaymentBackground> background) Creates an instance of aSendPaymentMessagerecord class.- Parameters:
noteMessage- the value for thenoteMessagerecord componentrequestMessageKey- the value for therequestMessageKeyrecord componentbackground- the value for thebackgroundrecord component
-
-
Method Details
-
type
Description copied from interface:MessageReturn message type -
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). -
noteMessage
Returns the value of thenoteMessagerecord component.- Returns:
- the value of the
noteMessagerecord component
-
requestMessageKey
Returns the value of therequestMessageKeyrecord component.- Returns:
- the value of the
requestMessageKeyrecord component
-
background
Returns the value of thebackgroundrecord component.- Returns:
- the value of the
backgroundrecord component
-