facebook4j.api
Interface NotificationMethods

All Known Subinterfaces:
Facebook

public interface NotificationMethods

Author:
Ryuji Yamashita - roundrop at gmail.com

Method Summary
 ResponseList<Notification> getNotifications()
          Returns the notifications for the current user.
 ResponseList<Notification> getNotifications(boolean includeRead)
          Returns the notifications for the current user.
 ResponseList<Notification> getNotifications(Reading reading)
          Returns the notifications for the current user.
 ResponseList<Notification> getNotifications(Reading reading, boolean includeRead)
          Returns the notifications for the current user.
 ResponseList<Notification> getNotifications(String userId)
          Returns the notifications for a user.
 ResponseList<Notification> getNotifications(String userId, boolean includeRead)
          Returns the notifications for a user.
 ResponseList<Notification> getNotifications(String userId, Reading reading)
          Returns the notifications for a user.
 ResponseList<Notification> getNotifications(String userId, Reading reading, boolean includeRead)
          Returns the notifications for a user.
 boolean markNotificationAsRead(String notificationId)
          Marks the notification as read.
 

Method Detail

getNotifications

ResponseList<Notification> getNotifications()
                                            throws FacebookException
Returns the notifications for the current user.

Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

getNotifications

ResponseList<Notification> getNotifications(boolean includeRead)
                                            throws FacebookException
Returns the notifications for the current user.

Parameters:
includeRead - enables you to see notifications that the user has already read in addition to the ones which are unread
Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

getNotifications

ResponseList<Notification> getNotifications(Reading reading)
                                            throws FacebookException
Returns the notifications for the current user.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

getNotifications

ResponseList<Notification> getNotifications(Reading reading,
                                            boolean includeRead)
                                            throws FacebookException
Returns the notifications for the current user.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
includeRead - enables you to see notifications that the user has already read in addition to the ones which are unread
Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

getNotifications

ResponseList<Notification> getNotifications(String userId)
                                            throws FacebookException
Returns the notifications for a user.

Parameters:
userId - the ID of a user
Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

getNotifications

ResponseList<Notification> getNotifications(String userId,
                                            boolean includeRead)
                                            throws FacebookException
Returns the notifications for a user.

Parameters:
userId - the ID of a user
includeRead - enables you to see notifications that the user has already read in addition to the ones which are unread
Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

getNotifications

ResponseList<Notification> getNotifications(String userId,
                                            Reading reading)
                                            throws FacebookException
Returns the notifications for a user.

Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

getNotifications

ResponseList<Notification> getNotifications(String userId,
                                            Reading reading,
                                            boolean includeRead)
                                            throws FacebookException
Returns the notifications for a user.

Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
includeRead - enables you to see notifications that the user has already read in addition to the ones which are unread
Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

markNotificationAsRead

boolean markNotificationAsRead(String notificationId)
                               throws FacebookException
Marks the notification as read.

Parameters:
notificationId - the ID of the notification
Returns:
true if mark as read is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers


Copyright © 2019. All rights reserved.