Class MessagingAttachment
java.lang.Object
com.restfb.types.webhook.messaging.MessagingAttachment
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The "audio" attachment type.static final String
The "fallback" attachment type.static final String
The "file" attachment type.static final String
The "image" attachment type.static final String
The "location" attachment type.static final String
The "story_mention" attachment type.static final String
The "template" attachment type.static final String
The "unsupported type" attachment typestatic final String
The "video" attachment type. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTitle()
getType()
getUrl()
boolean
isAudio()
convenience method to check if the attachment type is audioboolean
convenience method to check if the attachment type is fallbackboolean
isFile()
convenience method to check if the attachment type is fileboolean
isImage()
convenience method to check if the attachment type is imageboolean
convenience method to check if the attachment type is locationboolean
convenience method to check if the attachment type is story_mentionboolean
convenience method to check if the attachment type is templateboolean
convenience method to check if the attachment type is unsupportedboolean
isVideo()
convenience method to check if the attachment type is videovoid
setPayload
(MessagingPayload payload) void
void
void
toString()
-
Field Details
-
AUDIO
The "audio" attachment type.- See Also:
-
FALLBACK
The "fallback" attachment type.- See Also:
-
FILE
The "file" attachment type.- See Also:
-
IMAGE
The "image" attachment type.- See Also:
-
LOCATION
The "location" attachment type.- See Also:
-
VIDEO
The "video" attachment type.- See Also:
-
UNSUPPORTED_TYPE
The "unsupported type" attachment type- See Also:
-
TEMPLATE
The "template" attachment type.- See Also:
-
STORY_MENTION
The "story_mention" attachment type.- See Also:
-
-
Constructor Details
-
MessagingAttachment
public MessagingAttachment()
-
-
Method Details
-
isAudio
convenience method to check if the attachment type is audio- Returns:
true
if audio,false
if not audio
-
isFallback
convenience method to check if the attachment type is fallback- Returns:
true
if fallback,false
if not fallback
-
isFile
convenience method to check if the attachment type is file- Returns:
true
if file,false
if not file
-
isImage
convenience method to check if the attachment type is image- Returns:
true
if image,false
if not image
-
isLocation
convenience method to check if the attachment type is location- Returns:
true
if location,false
if not location
-
isVideo
convenience method to check if the attachment type is video- Returns:
true
if video,false
if not video
-
isTemplate
convenience method to check if the attachment type is template- Returns:
true
if template,false
if not template
-
isUnsupportedType
convenience method to check if the attachment type is unsupported- Returns:
true
if unsupported type,false
if supported
-
isStoryMention
convenience method to check if the attachment type is story_mention- Returns:
true
if story_mention type,false
if not story_mention
-
toString
-
getType
-
setType
-
getTitle
-
setTitle
-
getUrl
-
setUrl
-
getPayload
-
setPayload
-