Klasse MessagingAttachment
java.lang.Object
com.restfb.types.webhook.messaging.MessagingAttachment
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic 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 "template" attachment type.static final String
The "unsupported type" attachment typestatic final String
The "video" attachment type. -
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetTitle()
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 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()
-
Felddetails
-
AUDIO
The "audio" attachment type.- Siehe auch:
-
FALLBACK
The "fallback" attachment type.- Siehe auch:
-
FILE
The "file" attachment type.- Siehe auch:
-
IMAGE
The "image" attachment type.- Siehe auch:
-
LOCATION
The "location" attachment type.- Siehe auch:
-
VIDEO
The "video" attachment type.- Siehe auch:
-
UNSUPPORTED_TYPE
The "unsupported type" attachment type- Siehe auch:
-
TEMPLATE
The "template" attachment type.- Siehe auch:
-
-
Konstruktordetails
-
MessagingAttachment
public MessagingAttachment()
-
-
Methodendetails
-
isAudio
convenience method to check if the attachment type is audio- Gibt zurück:
true
if audio,false
if not audio
-
isFallback
convenience method to check if the attachment type is fallback- Gibt zurück:
true
if fallback,false
if not fallback
-
isFile
convenience method to check if the attachment type is file- Gibt zurück:
true
if file,false
if not file
-
isImage
convenience method to check if the attachment type is image- Gibt zurück:
true
if image,false
if not image
-
isLocation
convenience method to check if the attachment type is location- Gibt zurück:
true
if location,false
if not location
-
isVideo
convenience method to check if the attachment type is video- Gibt zurück:
true
if video,false
if not video
-
isTemplate
convenience method to check if the attachment type is template- Gibt zurück:
true
if template,false
if not template
-
isUnsupportedType
convenience method to check if the attachment type is unsupported- Gibt zurück:
true
if unsupported type,false
if supported
-
toString
-
getType
-
setType
-
getTitle
-
setTitle
-
getUrl
-
setUrl
-
getPayload
-
setPayload
-