Record Class ButtonOpaqueData

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 Details

    • body

      private final Optional<String> body
      The field for the body record component.
    • caption

      private final Optional<String> caption
      The field for the caption record component.
    • longitude

      private final double longitude
      The field for the longitude record component.
    • latitude

      private final double latitude
      The field for the latitude record component.
    • paymentAmount1000

      private final int paymentAmount1000
      The field for the paymentAmount1000 record component.
    • paymentNote

      private final Optional<String> paymentNote
      The field for the paymentNote record component.
    • canonicalUrl

      private final Optional<String> canonicalUrl
      The field for the canonicalUrl record component.
    • matchedText

      private final Optional<String> matchedText
      The field for the matchedText record component.
    • title

      private final Optional<String> title
      The field for the title record component.
    • description

      private final Optional<String> description
      The field for the description record component.
    • isLive

      private final boolean isLive
      The field for the isLive record component.
    • futureProofBuffer

      private final Optional<byte[]> futureProofBuffer
      The field for the futureProofBuffer record component.
    • clientUrl

      private final Optional<String> clientUrl
      The field for the clientUrl record component.
    • loc

      private final Optional<String> loc
      The field for the loc record component.
    • pollName

      private final Optional<String> pollName
      The field for the pollName record component.
    • pollOptions

      private final List<PollOption> pollOptions
      The field for the pollOptions record component.
    • pollSelectableOptionsCount

      private final int pollSelectableOptionsCount
      The field for the pollSelectableOptionsCount record component.
    • messageSecret

      private final Optional<byte[]> messageSecret
      The field for the messageSecret record component.
    • originalSelfAuthor

      private final Optional<String> originalSelfAuthor
      The field for the originalSelfAuthor record component.
    • senderTimestampMs

      private final long senderTimestampMs
      The field for the senderTimestampMs record component.
    • pollUpdateParentKey

      private final Optional<String> pollUpdateParentKey
      The field for the pollUpdateParentKey record component.
    • encPollVote

      private final Optional<PollUpdateEncryptedMetadata> encPollVote
      The field for the encPollVote record component.
    • encReactionTargetMessageKey

      private final Optional<String> encReactionTargetMessageKey
      The field for the encReactionTargetMessageKey record component.
    • encReactionEncPayload

      private final Optional<byte[]> encReactionEncPayload
      The field for the encReactionEncPayload record component.
    • encReactionEncIv

      private final Optional<byte[]> encReactionEncIv
      The field for the encReactionEncIv record 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 a ButtonOpaqueData record class.
      Parameters:
      body - the value for the body record component
      caption - the value for the caption record component
      longitude - the value for the longitude record component
      latitude - the value for the latitude record component
      paymentAmount1000 - the value for the paymentAmount1000 record component
      paymentNote - the value for the paymentNote record component
      canonicalUrl - the value for the canonicalUrl record component
      matchedText - the value for the matchedText record component
      title - the value for the title record component
      description - the value for the description record component
      isLive - the value for the isLive record component
      futureProofBuffer - the value for the futureProofBuffer record component
      clientUrl - the value for the clientUrl record component
      loc - the value for the loc record component
      pollName - the value for the pollName record component
      pollOptions - the value for the pollOptions record component
      pollSelectableOptionsCount - the value for the pollSelectableOptionsCount record component
      messageSecret - the value for the messageSecret record component
      originalSelfAuthor - the value for the originalSelfAuthor record component
      senderTimestampMs - the value for the senderTimestampMs record component
      pollUpdateParentKey - the value for the pollUpdateParentKey record component
      encPollVote - the value for the encPollVote record component
      encReactionTargetMessageKey - the value for the encReactionTargetMessageKey record component
      encReactionEncPayload - the value for the encReactionEncPayload record component
      encReactionEncIv - the value for the encReactionEncIv record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • body

      public Optional<String> body()
      Returns the value of the body record component.
      Returns:
      the value of the body record component
    • caption

      public Optional<String> caption()
      Returns the value of the caption record component.
      Returns:
      the value of the caption record component
    • longitude

      public double longitude()
      Returns the value of the longitude record component.
      Returns:
      the value of the longitude record component
    • latitude

      public double latitude()
      Returns the value of the latitude record component.
      Returns:
      the value of the latitude record component
    • paymentAmount1000

      public int paymentAmount1000()
      Returns the value of the paymentAmount1000 record component.
      Returns:
      the value of the paymentAmount1000 record component
    • paymentNote

      public Optional<String> paymentNote()
      Returns the value of the paymentNote record component.
      Returns:
      the value of the paymentNote record component
    • canonicalUrl

      public Optional<String> canonicalUrl()
      Returns the value of the canonicalUrl record component.
      Returns:
      the value of the canonicalUrl record component
    • matchedText

      public Optional<String> matchedText()
      Returns the value of the matchedText record component.
      Returns:
      the value of the matchedText record component
    • title

      public Optional<String> title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • description

      public Optional<String> description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • isLive

      public boolean isLive()
      Returns the value of the isLive record component.
      Returns:
      the value of the isLive record component
    • futureProofBuffer

      public Optional<byte[]> futureProofBuffer()
      Returns the value of the futureProofBuffer record component.
      Returns:
      the value of the futureProofBuffer record component
    • clientUrl

      public Optional<String> clientUrl()
      Returns the value of the clientUrl record component.
      Returns:
      the value of the clientUrl record component
    • loc

      public Optional<String> loc()
      Returns the value of the loc record component.
      Returns:
      the value of the loc record component
    • pollName

      public Optional<String> pollName()
      Returns the value of the pollName record component.
      Returns:
      the value of the pollName record component
    • pollOptions

      public List<PollOption> pollOptions()
      Returns the value of the pollOptions record component.
      Returns:
      the value of the pollOptions record component
    • pollSelectableOptionsCount

      public int pollSelectableOptionsCount()
      Returns the value of the pollSelectableOptionsCount record component.
      Returns:
      the value of the pollSelectableOptionsCount record component
    • messageSecret

      public Optional<byte[]> messageSecret()
      Returns the value of the messageSecret record component.
      Returns:
      the value of the messageSecret record component
    • originalSelfAuthor

      public Optional<String> originalSelfAuthor()
      Returns the value of the originalSelfAuthor record component.
      Returns:
      the value of the originalSelfAuthor record component
    • senderTimestampMs

      public long senderTimestampMs()
      Returns the value of the senderTimestampMs record component.
      Returns:
      the value of the senderTimestampMs record component
    • pollUpdateParentKey

      public Optional<String> pollUpdateParentKey()
      Returns the value of the pollUpdateParentKey record component.
      Returns:
      the value of the pollUpdateParentKey record component
    • encPollVote

      public Optional<PollUpdateEncryptedMetadata> encPollVote()
      Returns the value of the encPollVote record component.
      Returns:
      the value of the encPollVote record component
    • encReactionTargetMessageKey

      public Optional<String> encReactionTargetMessageKey()
      Returns the value of the encReactionTargetMessageKey record component.
      Returns:
      the value of the encReactionTargetMessageKey record component
    • encReactionEncPayload

      public Optional<byte[]> encReactionEncPayload()
      Returns the value of the encReactionEncPayload record component.
      Returns:
      the value of the encReactionEncPayload record component
    • encReactionEncIv

      public Optional<byte[]> encReactionEncIv()
      Returns the value of the encReactionEncIv record component.
      Returns:
      the value of the encReactionEncIv record component