java.lang.Object
java.lang.Record
it.auties.whatsapp.model.button.misc.ButtonOpaqueData
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record ButtonOpaqueData(Optional<String> body, Optional<String> caption, double longitude, double latitude, int paymentAmount1000, Optional<String> paymentNote, Optional<String> canonicalUrl, Optional<String> matchedText, Optional<String> title, Optional<String> description, boolean isLive, Optional<byte[]> futureProofBuffer, Optional<String> clientUrl, Optional<String> loc, Optional<String> pollName, List<PollOption> pollOptions, int pollSelectableOptionsCount, Optional<byte[]> messageSecret, Optional<String> originalSelfAuthor, long senderTimestampMs, Optional<String> pollUpdateParentKey, Optional<PollUpdateEncryptedMetadata> encPollVote, Optional<String> encReactionTargetMessageKey, Optional<byte[]> encReactionEncPayload, Optional<byte[]> encReactionEncIv)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
A model class that represents data about a button
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thebodyrecord component.The field for thecanonicalUrlrecord component.The field for thecaptionrecord component.The field for theclientUrlrecord component.The field for thedescriptionrecord component.private final Optional<PollUpdateEncryptedMetadata> The field for theencPollVoterecord component.private final Optional<byte[]> The field for theencReactionEncIvrecord component.private final Optional<byte[]> The field for theencReactionEncPayloadrecord component.The field for theencReactionTargetMessageKeyrecord component.private final Optional<byte[]> The field for thefutureProofBufferrecord component.private final booleanThe field for theisLiverecord component.private final doubleThe field for thelatituderecord component.The field for thelocrecord component.private final doubleThe field for thelongituderecord component.The field for thematchedTextrecord component.private final Optional<byte[]> The field for themessageSecretrecord component.The field for theoriginalSelfAuthorrecord component.private final intThe field for thepaymentAmount1000record component.The field for thepaymentNoterecord component.The field for thepollNamerecord component.private final List<PollOption> The field for thepollOptionsrecord component.private final intThe field for thepollSelectableOptionsCountrecord component.The field for thepollUpdateParentKeyrecord component.private final longThe field for thesenderTimestampMsrecord component.The field for thetitlerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionButtonOpaqueData(Optional<String> body, Optional<String> caption, double longitude, double latitude, int paymentAmount1000, Optional<String> paymentNote, Optional<String> canonicalUrl, Optional<String> matchedText, Optional<String> title, Optional<String> description, boolean isLive, Optional<byte[]> futureProofBuffer, Optional<String> clientUrl, Optional<String> loc, Optional<String> pollName, List<PollOption> pollOptions, int pollSelectableOptionsCount, Optional<byte[]> messageSecret, Optional<String> originalSelfAuthor, long senderTimestampMs, Optional<String> pollUpdateParentKey, Optional<PollUpdateEncryptedMetadata> encPollVote, Optional<String> encReactionTargetMessageKey, Optional<byte[]> encReactionEncPayload, Optional<byte[]> encReactionEncIv) Creates an instance of aButtonOpaqueDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.Returns the value of thecanonicalUrlrecord component.caption()Returns the value of thecaptionrecord component.Returns the value of theclientUrlrecord component.Returns the value of thedescriptionrecord component.Returns the value of theencPollVoterecord component.Optional<byte[]> Returns the value of theencReactionEncIvrecord component.Optional<byte[]> Returns the value of theencReactionEncPayloadrecord component.Returns the value of theencReactionTargetMessageKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.Optional<byte[]> Returns the value of thefutureProofBufferrecord component.final inthashCode()Returns a hash code value for this object.booleanisLive()Returns the value of theisLiverecord component.doublelatitude()Returns the value of thelatituderecord component.loc()Returns the value of thelocrecord component.doubleReturns the value of thelongituderecord component.Returns the value of thematchedTextrecord component.Optional<byte[]> Returns the value of themessageSecretrecord component.Returns the value of theoriginalSelfAuthorrecord component.intReturns the value of thepaymentAmount1000record component.Returns the value of thepaymentNoterecord component.pollName()Returns the value of thepollNamerecord component.Returns the value of thepollOptionsrecord component.intReturns the value of thepollSelectableOptionsCountrecord component.Returns the value of thepollUpdateParentKeyrecord component.longReturns the value of thesenderTimestampMsrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
body
The field for thebodyrecord component. -
caption
The field for thecaptionrecord component. -
longitude
private final double longitudeThe field for thelongituderecord component. -
latitude
private final double latitudeThe field for thelatituderecord component. -
paymentAmount1000
private final int paymentAmount1000The field for thepaymentAmount1000record component. -
paymentNote
The field for thepaymentNoterecord component. -
canonicalUrl
The field for thecanonicalUrlrecord component. -
matchedText
The field for thematchedTextrecord component. -
title
The field for thetitlerecord component. -
description
The field for thedescriptionrecord component. -
isLive
private final boolean isLiveThe field for theisLiverecord component. -
futureProofBuffer
The field for thefutureProofBufferrecord component. -
clientUrl
The field for theclientUrlrecord component. -
loc
The field for thelocrecord component. -
pollName
The field for thepollNamerecord component. -
pollOptions
The field for thepollOptionsrecord component. -
pollSelectableOptionsCount
private final int pollSelectableOptionsCountThe field for thepollSelectableOptionsCountrecord component. -
messageSecret
The field for themessageSecretrecord component. -
originalSelfAuthor
The field for theoriginalSelfAuthorrecord component. -
senderTimestampMs
private final long senderTimestampMsThe field for thesenderTimestampMsrecord component. -
pollUpdateParentKey
The field for thepollUpdateParentKeyrecord component. -
encPollVote
The field for theencPollVoterecord component. -
encReactionTargetMessageKey
The field for theencReactionTargetMessageKeyrecord component. -
encReactionEncPayload
The field for theencReactionEncPayloadrecord component. -
encReactionEncIv
The field for theencReactionEncIvrecord component.
-
-
Constructor Details
-
ButtonOpaqueData
public ButtonOpaqueData(Optional<String> body, Optional<String> caption, double longitude, double latitude, int paymentAmount1000, Optional<String> paymentNote, Optional<String> canonicalUrl, Optional<String> matchedText, Optional<String> title, Optional<String> description, boolean isLive, Optional<byte[]> futureProofBuffer, Optional<String> clientUrl, Optional<String> loc, Optional<String> pollName, List<PollOption> pollOptions, int pollSelectableOptionsCount, Optional<byte[]> messageSecret, Optional<String> originalSelfAuthor, long senderTimestampMs, Optional<String> pollUpdateParentKey, Optional<PollUpdateEncryptedMetadata> encPollVote, Optional<String> encReactionTargetMessageKey, Optional<byte[]> encReactionEncPayload, Optional<byte[]> encReactionEncIv) Creates an instance of aButtonOpaqueDatarecord class.- Parameters:
body- the value for thebodyrecord componentcaption- the value for thecaptionrecord componentlongitude- the value for thelongituderecord componentlatitude- the value for thelatituderecord componentpaymentAmount1000- the value for thepaymentAmount1000record componentpaymentNote- the value for thepaymentNoterecord componentcanonicalUrl- the value for thecanonicalUrlrecord componentmatchedText- the value for thematchedTextrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentisLive- the value for theisLiverecord componentfutureProofBuffer- the value for thefutureProofBufferrecord componentclientUrl- the value for theclientUrlrecord componentloc- the value for thelocrecord componentpollName- the value for thepollNamerecord componentpollOptions- the value for thepollOptionsrecord componentpollSelectableOptionsCount- the value for thepollSelectableOptionsCountrecord componentmessageSecret- the value for themessageSecretrecord componentoriginalSelfAuthor- the value for theoriginalSelfAuthorrecord componentsenderTimestampMs- the value for thesenderTimestampMsrecord componentpollUpdateParentKey- the value for thepollUpdateParentKeyrecord componentencPollVote- the value for theencPollVoterecord componentencReactionTargetMessageKey- the value for theencReactionTargetMessageKeyrecord componentencReactionEncPayload- the value for theencReactionEncPayloadrecord componentencReactionEncIv- the value for theencReactionEncIvrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
caption
Returns the value of thecaptionrecord component.- Returns:
- the value of the
captionrecord component
-
longitude
public double longitude()Returns the value of thelongituderecord component.- Returns:
- the value of the
longituderecord component
-
latitude
public double latitude()Returns the value of thelatituderecord component.- Returns:
- the value of the
latituderecord component
-
paymentAmount1000
public int paymentAmount1000()Returns the value of thepaymentAmount1000record component.- Returns:
- the value of the
paymentAmount1000record component
-
paymentNote
Returns the value of thepaymentNoterecord component.- Returns:
- the value of the
paymentNoterecord component
-
canonicalUrl
Returns the value of thecanonicalUrlrecord component.- Returns:
- the value of the
canonicalUrlrecord component
-
matchedText
Returns the value of thematchedTextrecord component.- Returns:
- the value of the
matchedTextrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
isLive
public boolean isLive()Returns the value of theisLiverecord component.- Returns:
- the value of the
isLiverecord component
-
futureProofBuffer
Returns the value of thefutureProofBufferrecord component.- Returns:
- the value of the
futureProofBufferrecord component
-
clientUrl
Returns the value of theclientUrlrecord component.- Returns:
- the value of the
clientUrlrecord component
-
loc
Returns the value of thelocrecord component.- Returns:
- the value of the
locrecord component
-
pollName
Returns the value of thepollNamerecord component.- Returns:
- the value of the
pollNamerecord component
-
pollOptions
Returns the value of thepollOptionsrecord component.- Returns:
- the value of the
pollOptionsrecord component
-
pollSelectableOptionsCount
public int pollSelectableOptionsCount()Returns the value of thepollSelectableOptionsCountrecord component.- Returns:
- the value of the
pollSelectableOptionsCountrecord component
-
messageSecret
Returns the value of themessageSecretrecord component.- Returns:
- the value of the
messageSecretrecord component
-
originalSelfAuthor
Returns the value of theoriginalSelfAuthorrecord component.- Returns:
- the value of the
originalSelfAuthorrecord component
-
senderTimestampMs
public long senderTimestampMs()Returns the value of thesenderTimestampMsrecord component.- Returns:
- the value of the
senderTimestampMsrecord component
-
pollUpdateParentKey
Returns the value of thepollUpdateParentKeyrecord component.- Returns:
- the value of the
pollUpdateParentKeyrecord component
-
encPollVote
Returns the value of theencPollVoterecord component.- Returns:
- the value of the
encPollVoterecord component
-
encReactionTargetMessageKey
Returns the value of theencReactionTargetMessageKeyrecord component.- Returns:
- the value of the
encReactionTargetMessageKeyrecord component
-
encReactionEncPayload
Returns the value of theencReactionEncPayloadrecord component.- Returns:
- the value of the
encReactionEncPayloadrecord component
-
encReactionEncIv
Returns the value of theencReactionEncIvrecord component.- Returns:
- the value of the
encReactionEncIvrecord component
-