-
- All Implemented Interfaces:
public abstract class FeedClient that allows you to work with Feed.
-
-
Method Summary
Modifier and Type Method Description final Either<StreamError, List<FeedActivity>>addActivities(List<FeedActivity> activities)Add activities. final Either<StreamError, FeedActivity>addActivity(FeedActivity activity)Add activity. final Either<StreamError, Unit>follow(Function1<FollowParams, Unit> params)Follow a Feed. final Either<StreamError, Unit>unfollow(Function1<UnfollowParams, Unit> params)Follow a Feed. final Either<StreamError, List<FollowRelation>>followed(Function1<FollowedParams, Unit> params)Get followed of a Feed. final Either<StreamError, List<FollowRelation>>followers(Function1<FollowersParams, Unit> params)Get followers of a Feed. final Either<StreamError, Unit>removeActivity(RemoveActivityParams params)Remove an activity. -
-
Method Detail
-
addActivities
final Either<StreamError, List<FeedActivity>> addActivities(List<FeedActivity> activities)
Add activities.
- Parameters:
activities- A List of FeedActivity to be added.
-
addActivity
final Either<StreamError, FeedActivity> addActivity(FeedActivity activity)
Add activity.
- Parameters:
activity- A FeedActivity to be added.
-
follow
final Either<StreamError, Unit> follow(Function1<FollowParams, Unit> params)
Follow a Feed.
- Parameters:
params- A function over FollowParams that defines params to be used.
-
unfollow
final Either<StreamError, Unit> unfollow(Function1<UnfollowParams, Unit> params)
Follow a Feed.
- Parameters:
params- A function over UnfollowParams that defines params to be used.
-
followed
final Either<StreamError, List<FollowRelation>> followed(Function1<FollowedParams, Unit> params)
Get followed of a Feed.
- Parameters:
params- A function over FollowedParams that defines params to be used.
-
followers
final Either<StreamError, List<FollowRelation>> followers(Function1<FollowersParams, Unit> params)
Get followers of a Feed.
- Parameters:
params- A function over FollowersParams that defines params to be used.
-
removeActivity
final Either<StreamError, Unit> removeActivity(RemoveActivityParams params)
Remove an activity.
- Parameters:
params- A function over RemoveActivityParams that defines params to be used.
-
-
-
-