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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The constants of this enumerated type describe the various types of media that an ad can wrap -
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thebody
record component.private final boolean
The field for thecontainsAutoReply
record component.The field for thectwaClid
record component.private final Optional
<ExternalAdReplyInfo.MediaType> The field for themediaType
record component.The field for themediaUrl
record component.private final boolean
The field for therenderLargerThumbnail
record component.private final boolean
The field for theshowAdAttribution
record component.The field for thesourceId
record component.The field for thesourceType
record component.The field for thesourceUrl
record component.private final Optional
<byte[]> The field for thethumbnail
record component.The field for thethumbnailUrl
record component.The field for thetitle
record component. -
Constructor Summary
ConstructorsConstructorDescriptionExternalAdReplyInfo
(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 aExternalAdReplyInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionbody()
Returns the value of thebody
record component.boolean
Returns the value of thecontainsAutoReply
record component.ctwaClid()
Returns the value of thectwaClid
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themediaType
record component.mediaUrl()
Returns the value of themediaUrl
record component.boolean
Returns the value of therenderLargerThumbnail
record component.boolean
Returns the value of theshowAdAttribution
record component.sourceId()
Returns the value of thesourceId
record component.Returns the value of thesourceType
record component.Returns the value of thesourceUrl
record component.Optional
<byte[]> Returns the value of thethumbnail
record component.Returns the value of thethumbnailUrl
record component.title()
Returns the value of thetitle
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
title
The field for thetitle
record component. -
body
The field for thebody
record component. -
mediaType
The field for themediaType
record component. -
thumbnailUrl
The field for thethumbnailUrl
record component. -
mediaUrl
The field for themediaUrl
record component. -
thumbnail
The field for thethumbnail
record component. -
sourceType
The field for thesourceType
record component. -
sourceId
The field for thesourceId
record component. -
sourceUrl
The field for thesourceUrl
record component. -
containsAutoReply
private final boolean containsAutoReplyThe field for thecontainsAutoReply
record component. -
renderLargerThumbnail
private final boolean renderLargerThumbnailThe field for therenderLargerThumbnail
record component. -
showAdAttribution
private final boolean showAdAttributionThe field for theshowAdAttribution
record component. -
ctwaClid
The field for thectwaClid
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 aExternalAdReplyInfo
record class.- Parameters:
title
- the value for thetitle
record componentbody
- the value for thebody
record componentmediaType
- the value for themediaType
record componentthumbnailUrl
- the value for thethumbnailUrl
record componentmediaUrl
- the value for themediaUrl
record componentthumbnail
- the value for thethumbnail
record componentsourceType
- the value for thesourceType
record componentsourceId
- the value for thesourceId
record componentsourceUrl
- the value for thesourceUrl
record componentcontainsAutoReply
- the value for thecontainsAutoReply
record componentrenderLargerThumbnail
- the value for therenderLargerThumbnail
record componentshowAdAttribution
- the value for theshowAdAttribution
record componentctwaClid
- the value for thectwaClid
record 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 '=='. -
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
body
Returns the value of thebody
record component.- Returns:
- the value of the
body
record component
-
mediaType
Returns the value of themediaType
record component.- Returns:
- the value of the
mediaType
record component
-
thumbnailUrl
Returns the value of thethumbnailUrl
record component.- Returns:
- the value of the
thumbnailUrl
record component
-
mediaUrl
Returns the value of themediaUrl
record component.- Returns:
- the value of the
mediaUrl
record component
-
thumbnail
Returns the value of thethumbnail
record component.- Returns:
- the value of the
thumbnail
record component
-
sourceType
Returns the value of thesourceType
record component.- Returns:
- the value of the
sourceType
record component
-
sourceId
Returns the value of thesourceId
record component.- Returns:
- the value of the
sourceId
record component
-
sourceUrl
Returns the value of thesourceUrl
record component.- Returns:
- the value of the
sourceUrl
record component
-
containsAutoReply
public boolean containsAutoReply()Returns the value of thecontainsAutoReply
record component.- Returns:
- the value of the
containsAutoReply
record component
-
renderLargerThumbnail
public boolean renderLargerThumbnail()Returns the value of therenderLargerThumbnail
record component.- Returns:
- the value of the
renderLargerThumbnail
record component
-
showAdAttribution
public boolean showAdAttribution()Returns the value of theshowAdAttribution
record component.- Returns:
- the value of the
showAdAttribution
record component
-
ctwaClid
Returns the value of thectwaClid
record component.- Returns:
- the value of the
ctwaClid
record component
-