Class MessagingAttachment
java.lang.Object
com.restfb.types.webhook.messaging.MessagingAttachment
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe "audio" attachment type.static final StringThe "fallback" attachment type.static final StringThe "file" attachment type.static final StringThe "image" attachment type.static final StringThe "location" attachment type.static final StringThe "story_mention" attachment type.static final StringThe "template" attachment type.static final StringThe "unsupported type" attachment typestatic final StringThe "video" attachment type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTitle()getType()getUrl()booleanisAudio()convenience method to check if the attachment type is audiobooleanconvenience method to check if the attachment type is fallbackbooleanisFile()convenience method to check if the attachment type is filebooleanisImage()convenience method to check if the attachment type is imagebooleanconvenience method to check if the attachment type is locationbooleanconvenience method to check if the attachment type is story_mentionbooleanconvenience method to check if the attachment type is templatebooleanconvenience method to check if the attachment type is unsupportedbooleanisVideo()convenience method to check if the attachment type is videovoidsetPayload(MessagingPayload payload) voidvoidvoidtoString()
-
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:
trueif audio,falseif not audio
-
isFallback
convenience method to check if the attachment type is fallback- Returns:
trueif fallback,falseif not fallback
-
isFile
convenience method to check if the attachment type is file- Returns:
trueif file,falseif not file
-
isImage
convenience method to check if the attachment type is image- Returns:
trueif image,falseif not image
-
isLocation
convenience method to check if the attachment type is location- Returns:
trueif location,falseif not location
-
isVideo
convenience method to check if the attachment type is video- Returns:
trueif video,falseif not video
-
isTemplate
convenience method to check if the attachment type is template- Returns:
trueif template,falseif not template
-
isUnsupportedType
convenience method to check if the attachment type is unsupported- Returns:
trueif unsupported type,falseif supported
-
isStoryMention
convenience method to check if the attachment type is story_mention- Returns:
trueif story_mention type,falseif not story_mention
-
toString
-
getType
-
setType
-
getTitle
-
setTitle
-
getUrl
-
setUrl
-
getPayload
-
setPayload
-