Package com.restfb.types
Class Notification
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.FacebookType
com.restfb.types.Notification
- All Implemented Interfaces:
HasCreatedTime
,HasFrom
,Serializable
Represents the Notification Graph API
type.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe app responsible for generating the notification.When the notification was created.getFrom()
The entity (user, page, app, etc.) that 'sent', or is the source of the notification.getLink()
The URL that clicking on the notification would take someone.The object (this can be a post, a photo, a comment, etc.) that was the subject of the notification.getTitle()
The message text in the notification.getTo()
The entity that received the notification.Indicates that the notification is unread.When the notification was last updated.void
setApplication
(Application application) The app responsible for generating the notification.void
setCreatedTime
(Date createdTime) When the notification was created.void
setFrom
(NamedFacebookType from) The entity (user, page, app, etc.) that 'sent', or is the source of the notification.void
The URL that clicking on the notification would take someone.void
setObject
(NamedFacebookType object) The object (this can be a post, a photo, a comment, etc.) that was the subject of the notification.void
The message text in the notification.void
The entity that received the notification.void
Indicates that the notification is unread.void
setUpdatedTime
(Date updatedTime) When the notification was last updated.Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
Notification
public Notification()
-
-
Method Details
-
getFrom
The entity (user, page, app, etc.) that 'sent', or is the source of the notification. -
setFrom
The entity (user, page, app, etc.) that 'sent', or is the source of the notification. -
getTo
The entity that received the notification.- Returns:
- The entity that received the notification.
-
setTo
The entity that received the notification. -
getLink
The URL that clicking on the notification would take someone.- Returns:
- The URL that clicking on the notification would take someone.
-
setLink
The URL that clicking on the notification would take someone. -
getTitle
The message text in the notification.- Returns:
- The message text in the notification.
-
setTitle
The message text in the notification. -
getApplication
The app responsible for generating the notification. Some of the core Facebook features have their own app that shows up here, such as likes when someone likes another person's content.- Returns:
- The app responsible for generating the notification.
-
setApplication
The app responsible for generating the notification. Some of the core Facebook features have their own app that shows up here, such as likes when someone likes another person's content. -
getUnread
Indicates that the notification is unread.Note that 'read' notifications will not be accessible.
- Returns:
- Indicates that the notification is unread.
-
setUnread
Indicates that the notification is unread.Note that 'read' notifications will not be accessible.
-
getObject
The object (this can be a post, a photo, a comment, etc.) that was the subject of the notification.- Returns:
- the object that was the subject of the notification.
-
setObject
The object (this can be a post, a photo, a comment, etc.) that was the subject of the notification. -
getUpdatedTime
When the notification was last updated. When the notification was created.- Returns:
- When the notification was last updated.
-
setUpdatedTime
When the notification was last updated. When the notification was created. -
getCreatedTime
When the notification was created.- Specified by:
getCreatedTime
in interfaceHasCreatedTime
- Returns:
- When the notification was created.
-
setCreatedTime
When the notification was created.
-