Package com.podio.notification
Class NotificationAPI
- java.lang.Object
-
- com.podio.BaseAPI
-
- com.podio.notification.NotificationAPI
-
public class NotificationAPI extends BaseAPI
A notification is an information about an event that occured in Podio. A notification is directed against a single user, and can have a status of either unread or viewed. Notifications have a reference to the action that caused the notification.
-
-
Constructor Summary
Constructors Constructor Description NotificationAPI(ResourceFactory resourceFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetInboxNewCount()Returns the number of unread notificationsvoidmarkAsViewed(int notificationId)Mark the notification as viewed.-
Methods inherited from class com.podio.BaseAPI
getResourceFactory
-
-
-
-
Constructor Detail
-
NotificationAPI
public NotificationAPI(ResourceFactory resourceFactory)
-
-
Method Detail
-
getInboxNewCount
public int getInboxNewCount()
Returns the number of unread notifications- Returns:
- The number of unread notifications
-
markAsViewed
public void markAsViewed(int notificationId)
Mark the notification as viewed. This will move the notification from the inbox to the viewed archive.- Parameters:
notificationId- The id of the notification
-
-