Class MessagingAttachment
java.lang.Object
com.restfb.types.webhook.messaging.MessagingAttachment
-
Field Summary
-
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
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:
- Constant Field Values
-
FALLBACK
The "fallback" attachment type.- See Also:
- Constant Field Values
-
FILE
The "file" attachment type.- See Also:
- Constant Field Values
-
IMAGE
The "image" attachment type.- See Also:
- Constant Field Values
-
LOCATION
The "location" attachment type.- See Also:
- Constant Field Values
-
VIDEO
The "video" attachment type.- See Also:
- Constant Field Values
-
-
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
-
toString
-
getType
-
setType
-
getTitle
-
setTitle
-
getUrl
-
setUrl
-
getPayload
-
setPayload
-