Package com.whatsapp.api.domain.webhook
Record Class Referral
java.lang.Object
java.lang.Record
com.whatsapp.api.domain.webhook.Referral
- Record Components:
videoUrl
- Added if media_type is “video”. Contains a URL to the video.mediaType
- Media present in the ad or post the user clicked. Supported values are "image" or "video".imageUrl
- Added if media_type is “image”. Contains a URL to the raw image.sourceType
- Specifies the type of the ad's source. Supported values are "ad" or "post".sourceId
- Specifies the Meta ID for an ad or post.body
- The description, or body, from the ad or post that generated the message.thumbnailUrl
- Added if media_type is “video”. Contains a URL to the thumbnail image of the clicked video.headline
- Specifies the headline used in the ad or post that generated the message.sourceUrl
- Specifies the URL that leads to the ad or post clicked by the user. Opening this URL takes you to the ad viewed by your user.
public record Referral(String videoUrl, String mediaType, String imageUrl, String sourceType, String sourceId, String body, String thumbnailUrl, String headline, String sourceUrl)
extends Record
The type Referral.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbody()
Returns the value of thebody
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.headline()
Returns the value of theheadline
record component.imageUrl()
Returns the value of theimageUrl
record component.Returns the value of themediaType
record component.sourceId()
Returns the value of thesourceId
record component.Returns the value of thesourceType
record component.Returns the value of thesourceUrl
record component.Returns the value of thethumbnailUrl
record component.final String
toString()
Returns a string representation of this record class.videoUrl()
Returns the value of thevideoUrl
record component.
-
Constructor Details
-
Referral
public Referral(String videoUrl, String mediaType, String imageUrl, String sourceType, String sourceId, String body, String thumbnailUrl, String headline, String sourceUrl) Creates an instance of aReferral
record class.- Parameters:
videoUrl
- the value for thevideoUrl
record componentmediaType
- the value for themediaType
record componentimageUrl
- the value for theimageUrl
record componentsourceType
- the value for thesourceType
record componentsourceId
- the value for thesourceId
record componentbody
- the value for thebody
record componentthumbnailUrl
- the value for thethumbnailUrl
record componentheadline
- the value for theheadline
record componentsourceUrl
- the value for thesourceUrl
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
videoUrl
Returns the value of thevideoUrl
record component.- Returns:
- the value of the
videoUrl
record component
-
mediaType
Returns the value of themediaType
record component.- Returns:
- the value of the
mediaType
record component
-
imageUrl
Returns the value of theimageUrl
record component.- Returns:
- the value of the
imageUrl
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
-
body
Returns the value of thebody
record component.- Returns:
- the value of the
body
record component
-
thumbnailUrl
Returns the value of thethumbnailUrl
record component.- Returns:
- the value of the
thumbnailUrl
record component
-
headline
Returns the value of theheadline
record component.- Returns:
- the value of the
headline
record component
-
sourceUrl
Returns the value of thesourceUrl
record component.- Returns:
- the value of the
sourceUrl
record component
-