Module it.auties.cobalt
Record Class PaymentInviteMessage
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.message.payment.PaymentInviteMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,Message,PaymentMessage
public record PaymentInviteMessage(PaymentInviteMessage.ServiceType serviceType, OptionalLong expiryTimestamp)
extends Record
implements PaymentMessage
A model class that represents a message to decline a
RequestPaymentMessage.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final OptionalLongThe field for theexpiryTimestamprecord component.private final PaymentInviteMessage.ServiceTypeThe field for theserviceTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPaymentInviteMessage(PaymentInviteMessage.ServiceType serviceType, OptionalLong expiryTimestamp) Creates an instance of aPaymentInviteMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiryTimestamprecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theserviceTyperecord 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
-
serviceType
The field for theserviceTyperecord component. -
expiryTimestamp
The field for theexpiryTimestamprecord component.
-
-
Constructor Details
-
PaymentInviteMessage
public PaymentInviteMessage(PaymentInviteMessage.ServiceType serviceType, OptionalLong expiryTimestamp) Creates an instance of aPaymentInviteMessagerecord class.- Parameters:
serviceType- the value for theserviceTyperecord componentexpiryTimestamp- the value for theexpiryTimestamprecord 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). -
serviceType
Returns the value of theserviceTyperecord component.- Returns:
- the value of the
serviceTyperecord component
-
expiryTimestamp
Returns the value of theexpiryTimestamprecord component.- Returns:
- the value of the
expiryTimestamprecord component
-