public interface Feed
| Modifier and Type | Method and Description |
|---|---|
void |
deleteActivity(String activityId)
Removes an activity from the feed.
|
void |
deleteActivityByForeignId(String foreignId)
Removes an activity from the feed.
|
void |
follow(String feedSlug,
String userId)
Follows the given target feed.
|
List<FeedFollow> |
getFollowers()
Lists the followers of the feed.
|
List<FeedFollow> |
getFollowers(FeedFilter filter)
Lists the followers of the feed using the given filter.
|
List<FeedFollow> |
getFollowing()
List the feeds which this feed is following.
|
List<FeedFollow> |
getFollowing(FeedFilter filter)
List the feeds which this feed is following using the give filter.
|
String |
getId() |
String |
getToken() |
<T extends BaseActivity> |
newAggregatedActivityService(Class<T> clazz)
Get mediator service to handle aggregated activities.
|
<T extends BaseActivity> |
newFlatActivityService(Class<T> clazz)
Get mediator service to handle aggregated activities.
|
<T extends BaseActivity> |
newNotificationActivityService(Class<T> clazz)
Get mediator service to handle aggregated activities.
|
<T extends BaseActivity> |
newUserActivityService(Class<T> clazz)
Get mediator service to handle aggregated activities.
|
void |
unfollow(String feedSlug,
String userId)
Unfollow the given target feed.
|
String getId()
String getToken()
void follow(String feedSlug, String userId) throws IOException, StreamClientException
feedSlug - the slug of the target feed.userId - IOExceptionStreamClientExceptionvoid unfollow(String feedSlug, String userId) throws IOException, StreamClientException
feedSlug - the slug of the target feed.userId - IOExceptionStreamClientExceptionList<FeedFollow> getFollowers() throws IOException, StreamClientException
IOExceptionStreamClientExceptionList<FeedFollow> getFollowers(FeedFilter filter) throws IOException, StreamClientException
filter - Filter out the followers.IOExceptionStreamClientExceptionList<FeedFollow> getFollowing() throws IOException, StreamClientException
IOExceptionStreamClientExceptionList<FeedFollow> getFollowing(FeedFilter filter) throws IOException, StreamClientException
filter - Filter out the list of following feeds.IOExceptionStreamClientExceptionvoid deleteActivity(String activityId) throws IOException, StreamClientException
activityId - the activity id to remove from this feed.IOExceptionStreamClientExceptionvoid deleteActivityByForeignId(String foreignId) throws IOException, StreamClientException
foreignId - the activity id to remove from this feed.IOExceptionStreamClientException<T extends BaseActivity> FlatActivityServiceImpl<T> newFlatActivityService(Class<T> clazz)
T - clazz - Subtype of BaseActivity representing the activity type to handle.<T extends BaseActivity> AggregatedActivityServiceImpl<T> newAggregatedActivityService(Class<T> clazz)
clazz - Subtype of BaseActivity representing the activity type to handle.<T extends BaseActivity> UserActivityServiceImpl<T> newUserActivityService(Class<T> clazz)
T - clazz - Subtype of BaseActivity representing the activity type to handle.<T extends BaseActivity> NotificationActivityServiceImpl<T> newNotificationActivityService(Class<T> clazz)
T - clazz - Subtype of BaseActivity representing the activity type to handle.Copyright © 2015. All rights reserved.