Package com.restfb.types
Klasse Message.Attachment
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.FacebookType
com.restfb.types.Message.Attachment
- Alle implementierten Schnittstellen:
Serializable
- Umschließende Klasse:
Message
Represents an attached file that you may find on a private message.
- Seit:
- 1.6.12
- Autor:
- alockhart
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen com.restfb.types.FacebookType
FacebookType.Metadata
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungWhen the attached file is an image, Facebook will also send information about it's width, height and url.The attachment's mime type, for example image/jpeg.getName()
The attachment's filename, for example 121423423.jpg.getSize()
The size of the attachment in bytes.When the attached file is a video, Facebook will also send information about it's width, height and url.boolean
isImage()
returns if the attachment is a imageboolean
returns if the attachment is a placeholder for the real attachment, that is not accessible via API due to privacy rules in Europe check at Facebookboolean
isVideo()
returns if the attachment is a videovoid
setFileUrl
(String fileUrl) void
setImageData
(Message.ImageData imageData) When the attached file is an image, Facebook will also send information about it's width, height and url.void
setMimeType
(String mimeType) The attachment's mime type, for example image/jpeg.void
The attachment's filename, for example 121423423.jpg.void
The size of the attachment in bytes.void
setVideoData
(Message.VideoData videoData) When the attached file is a video, Facebook will also send information about it's width, height and url.Von Klasse geerbte Methoden com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
Von Klasse geerbte Methoden com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Konstruktordetails
-
Attachment
public Attachment()
-
-
Methodendetails
-
isImage
returns if the attachment is a image- Gibt zurück:
- true if the attachment is a image, false otherwise
-
isVideo
returns if the attachment is a video- Gibt zurück:
- true if the attachment is a video, false otherwise
-
isRemovedInEurope
returns if the attachment is a placeholder for the real attachment, that is not accessible via API due to privacy rules in Europe check at Facebook- Gibt zurück:
- true if not accessible in the EU
-
getName
The attachment's filename, for example 121423423.jpg.- Gibt zurück:
- The attachment's filename.
-
setName
The attachment's filename, for example 121423423.jpg. -
getMimeType
The attachment's mime type, for example image/jpeg.- Gibt zurück:
- The attachment's mime type.
-
setMimeType
The attachment's mime type, for example image/jpeg. -
getSize
The size of the attachment in bytes.- Gibt zurück:
- The size of the attachment in bytes.
-
setSize
The size of the attachment in bytes. -
getFileUrl
-
setFileUrl
-
getImageData
When the attached file is an image, Facebook will also send information about it's width, height and url.- Gibt zurück:
- The attachment's image data.
-
setImageData
When the attached file is an image, Facebook will also send information about it's width, height and url. -
getVideoData
When the attached file is a video, Facebook will also send information about it's width, height and url.- Gibt zurück:
- The attachment's video data.
-
setVideoData
When the attached file is a video, Facebook will also send information about it's width, height and url.
-