T - Subtype of BaseActivity representing the activity type to handle.public class NotificationActivityServiceImpl<T extends BaseActivity> extends AbstractActivityService<T> implements NotificationActivityService<T>
BaseActivity.feed, streamRepository, type| Constructor and Description |
|---|
NotificationActivityServiceImpl(BaseFeed feed,
Class type,
StreamRepository streamRepository) |
| Modifier and Type | Method and Description |
|---|---|
StreamResponse<NotificationActivity<T>> |
getActivities()
Get a list of activities using the standard filter (limit = 25).
|
StreamResponse<NotificationActivity<T>> |
getActivities(FeedFilter filter,
boolean markAsRead,
boolean markAsSeen)
List notification activities using the given filter.
|
StreamResponse<NotificationActivity<T>> |
getActivities(FeedFilter filter,
MarkedActivity markAsRead,
MarkedActivity markAsSeen)
List notification activities using the given filter.
|
addActivities, addActivity, addActivityToMany, updateActivitiespublic NotificationActivityServiceImpl(BaseFeed feed, Class type, StreamRepository streamRepository)
public StreamResponse<NotificationActivity<T>> getActivities() throws IOException, StreamClientException
NotificationActivityServicegetActivities in interface NotificationActivityService<T extends BaseActivity>IOException - in case of network/socket exceptionsStreamClientException - in case of functional or server-side exceptionpublic StreamResponse<NotificationActivity<T>> getActivities(FeedFilter filter, boolean markAsRead, boolean markAsSeen) throws IOException, StreamClientException
NotificationActivityServiceMarkedActivity as read and/or seen.getActivities in interface NotificationActivityService<T extends BaseActivity>filter - Filter to use to filter out the activitiesmarkAsRead - If true, mark all the activities as read. If false leave them untouched.markAsSeen - If true, mark all the activities as seen. If false leave them untouched.IOException - in case of network/socket exceptionsStreamClientException - in case of functional or server-side exceptionpublic StreamResponse<NotificationActivity<T>> getActivities(FeedFilter filter, MarkedActivity markAsRead, MarkedActivity markAsSeen) throws IOException, StreamClientException
NotificationActivityServiceMarkedActivity as read and/or seen.getActivities in interface NotificationActivityService<T extends BaseActivity>filter - Filter to use to filter out the activitiesmarkAsRead - A list of activity ids to be marked as read.markAsSeen - A list of activity ids to be marked as seen.IOException - in case of network/socket exceptionsStreamClientException - in case of functional or server-side exceptionCopyright © 2016. All rights reserved.