Class Notification

All Implemented Interfaces:
HasCreatedTime, HasFrom, Serializable

public class Notification extends FacebookType implements HasCreatedTime, HasFrom
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • getFrom

      The entity (user, page, app, etc.) that 'sent', or is the source of the notification.
      Specified by:
      getFrom in interface HasFrom
      Returns:
      The entity that 'sent', or is the source of the notification.
    • setFrom

      public void setFrom(NamedFacebookType from)
      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

      public void setTo(NamedFacebookType to)
      The entity that received the notification.
    • getLink

      public String getLink()
      The URL that clicking on the notification would take someone.
      Returns:
      The URL that clicking on the notification would take someone.
    • setLink

      public void setLink(String link)
      The URL that clicking on the notification would take someone.
    • getTitle

      public String getTitle()
      The message text in the notification.
      Returns:
      The message text in the notification.
    • setTitle

      public void setTitle(String title)
      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

      public void setApplication(Application application)
      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

      public Integer getUnread()
      Indicates that the notification is unread. Note that 'read' notifications will not be accessible.
      Returns:
      Indicates that the notification is unread.
    • setUnread

      public void setUnread(Integer unread)
      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

      public void setObject(NamedFacebookType object)
      The object (this can be a post, a photo, a comment, etc.) that was the subject of the notification.
    • getUpdatedTime

      public Date getUpdatedTime()
      When the notification was last updated. When the notification was created.
      Returns:
      When the notification was last updated.
    • setUpdatedTime

      public void setUpdatedTime(Date updatedTime)
      When the notification was last updated. When the notification was created.
    • getCreatedTime

      public Date getCreatedTime()
      When the notification was created.
      Specified by:
      getCreatedTime in interface HasCreatedTime
      Returns:
      When the notification was created.
    • setCreatedTime

      public void setCreatedTime(Date createdTime)
      When the notification was created.