Package com.restfb.types
Klasse Message
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.FacebookType
com.restfb.types.Message
- Alle implementierten Schnittstellen:
HasCreatedTime
,HasFrom
,HasMessage
,Serializable
Represents the Message Graph API type
.
- Autor:
- Mark Allen, Felipe Kurkowski, alockhart
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic class
Represents an attached file that you may find on a private message.static class
static class
Additional attachment information, only present when an attached file is an image.static class
static class
Represents the Message Share Graph API type.static class
static class
static class
static class
Additional attachment information, only present when an attached file is an video.Von Klasse geerbte verschachtelte Klassen/Schnittstellen com.restfb.types.FacebookType
FacebookType.Metadata
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
addAttachment
(Message.Attachment attachment) boolean
addReaction
(Message.Reaction reaction) boolean
addShare
(Message.Share share) boolean
boolean
addTo
(ExtendedReferenceType receiver) The attachments associated with the message.The time the message was initially created.getFrom()
The sender of this messageThe text of the messageReaction (like/love) on the existing messageThe shares associated with the message.Sticker contained in the message.getStory()
The subject of the message.getTags()
A set of tags indicating the message folder and source of the message.getTo()
A list of recipients of the message.The "unread" count for this message.Whether this message has been seen.The time of the last update to this message.boolean
boolean
removeAttachment
(Message.Attachment attachment) boolean
removeReaction
(Message.Reaction reaction) boolean
removeShare
(Message.Share share) boolean
boolean
removeTo
(ExtendedReferenceType receiver) void
setCreatedTime
(Date createdTime) The time the message was initially created.void
setFrom
(ExtendedReferenceType from) The sender of this messagevoid
setMessage
(String message) The text of the messagevoid
setSticker
(String sticker) Sticker contained in the message.void
setStory
(Message.Story story) void
setSubject
(String subject) The subject of the message.void
The "unread" count for this message.void
Whether this message has been seen.void
setUnsupported
(boolean isUnsupported) void
setUpdatedTime
(Date updatedTime) The time of the last update to this message.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
-
Message
public Message()
-
-
Methodendetails
-
getAttachments
The attachments associated with the message.- Gibt zurück:
- The attachments associated with the message.
-
addAttachment
-
removeAttachment
-
getTo
A list of recipients of the message.- Gibt zurück:
- A list of the message recipients
-
addTo
-
removeTo
-
getTags
A set of tags indicating the message folder and source of the message.- Gibt zurück:
- A set of tags indicating the message folder and source of the message.
-
addTag
-
removeTag
-
getReactions
Reaction (like/love) on the existing message- Gibt zurück:
- list of reactions
-
addReaction
-
removeReaction
-
getCreatedTime
The time the message was initially created.- Angegeben von:
getCreatedTime
in SchnittstelleHasCreatedTime
- Gibt zurück:
- The time the message was initially created.
-
setCreatedTime
The time the message was initially created. -
getSubject
The subject of the message.- Gibt zurück:
- The subject of the message.
-
setSubject
The subject of the message. -
getFrom
The sender of this message -
setFrom
The sender of this message -
isUnsupported
-
setUnsupported
-
getMessage
The text of the message- Angegeben von:
getMessage
in SchnittstelleHasMessage
- Gibt zurück:
- The text of the message
-
setMessage
The text of the message -
getSticker
Sticker contained in the message.- Gibt zurück:
- The Sticker in that message
-
setSticker
Sticker contained in the message. -
getStory
-
setStory
-
getUpdatedTime
The time of the last update to this message.- Gibt zurück:
- The time of the last update to this message.
-
setUpdatedTime
The time of the last update to this message. -
getUnread
The "unread" count for this message.- Gibt zurück:
- The "unread" count for this message.
-
setUnread
The "unread" count for this message. -
getUnseen
Whether this message has been seen.- Gibt zurück:
- Whether this message has been seen.
-
setUnseen
Whether this message has been seen.
-