Record Class ExternalAdReplyInfo

java.lang.Object
java.lang.Record
it.auties.whatsapp.model.info.ExternalAdReplyInfo
All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage, it.auties.protobuf.model.ProtobufObject, Info

public record ExternalAdReplyInfo(Optional<String> title, Optional<String> body, Optional<ExternalAdReplyInfo.MediaType> mediaType, Optional<String> thumbnailUrl, Optional<String> mediaUrl, Optional<byte[]> thumbnail, Optional<String> sourceType, Optional<String> sourceId, Optional<String> sourceUrl, boolean containsAutoReply, boolean renderLargerThumbnail, boolean showAdAttribution, Optional<String> ctwaClid) extends Record implements Info, it.auties.protobuf.model.ProtobufMessage
A model class that holds the information related to an advertisement.
  • Field Details

    • title

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

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

      private final Optional<ExternalAdReplyInfo.MediaType> mediaType
      The field for the mediaType record component.
    • thumbnailUrl

      private final Optional<String> thumbnailUrl
      The field for the thumbnailUrl record component.
    • mediaUrl

      private final Optional<String> mediaUrl
      The field for the mediaUrl record component.
    • thumbnail

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

      private final Optional<String> sourceType
      The field for the sourceType record component.
    • sourceId

      private final Optional<String> sourceId
      The field for the sourceId record component.
    • sourceUrl

      private final Optional<String> sourceUrl
      The field for the sourceUrl record component.
    • containsAutoReply

      private final boolean containsAutoReply
      The field for the containsAutoReply record component.
    • renderLargerThumbnail

      private final boolean renderLargerThumbnail
      The field for the renderLargerThumbnail record component.
    • showAdAttribution

      private final boolean showAdAttribution
      The field for the showAdAttribution record component.
    • ctwaClid

      private final Optional<String> ctwaClid
      The field for the ctwaClid record component.
  • Constructor Details

    • ExternalAdReplyInfo

      public ExternalAdReplyInfo(Optional<String> title, Optional<String> body, Optional<ExternalAdReplyInfo.MediaType> mediaType, Optional<String> thumbnailUrl, Optional<String> mediaUrl, Optional<byte[]> thumbnail, Optional<String> sourceType, Optional<String> sourceId, Optional<String> sourceUrl, boolean containsAutoReply, boolean renderLargerThumbnail, boolean showAdAttribution, Optional<String> ctwaClid)
      Creates an instance of a ExternalAdReplyInfo record class.
      Parameters:
      title - the value for the title record component
      body - the value for the body record component
      mediaType - the value for the mediaType record component
      thumbnailUrl - the value for the thumbnailUrl record component
      mediaUrl - the value for the mediaUrl record component
      thumbnail - the value for the thumbnail record component
      sourceType - the value for the sourceType record component
      sourceId - the value for the sourceId record component
      sourceUrl - the value for the sourceUrl record component
      containsAutoReply - the value for the containsAutoReply record component
      renderLargerThumbnail - the value for the renderLargerThumbnail record component
      showAdAttribution - the value for the showAdAttribution record component
      ctwaClid - the value for the ctwaClid 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.
    • title

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

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

      Returns the value of the mediaType record component.
      Returns:
      the value of the mediaType record component
    • thumbnailUrl

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

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

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

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

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

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

      public boolean containsAutoReply()
      Returns the value of the containsAutoReply record component.
      Returns:
      the value of the containsAutoReply record component
    • renderLargerThumbnail

      public boolean renderLargerThumbnail()
      Returns the value of the renderLargerThumbnail record component.
      Returns:
      the value of the renderLargerThumbnail record component
    • showAdAttribution

      public boolean showAdAttribution()
      Returns the value of the showAdAttribution record component.
      Returns:
      the value of the showAdAttribution record component
    • ctwaClid

      public Optional<String> ctwaClid()
      Returns the value of the ctwaClid record component.
      Returns:
      the value of the ctwaClid record component