Package io.getstream.client
Class Feed
java.lang.Object
io.getstream.client.Feed
- Direct Known Subclasses:
AggregatedFeed,FlatFeed,NotificationFeed
-
Method Summary
Modifier and TypeMethodDescriptionaddActivities(Activity... activities) addActivities(Activity[] activities, RequestOption... options) addActivities(Iterable<Activity> activities) final java8.util.concurrent.CompletableFuture<Activity>addActivity(Activity activity, RequestOption... options) final <T> java8.util.concurrent.CompletableFuture<List<T>>addCustomActivities(Iterable<T> activities) final <T> java8.util.concurrent.CompletableFuture<List<T>>addCustomActivities(T... activities) final <T> java8.util.concurrent.CompletableFuture<T>addCustomActivity(T activity, RequestOption... options) final java8.util.concurrent.CompletableFuture<Void>final java8.util.concurrent.CompletableFuture<Void>protected final Clientfinal java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowed(FeedID... feedIDs) final java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowed(Limit limit, FeedID... feedIDs) final java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowed(Limit limit, Offset offset, FeedID... feeds) final java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowed(Limit limit, Offset offset, Iterable<FeedID> feedIDs) final java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowed(Limit limit, Iterable<FeedID> feedIDs) final java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowed(Offset offset, FeedID... feedIDs) final java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowed(Offset offset, Iterable<FeedID> feedIDs) final java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowed(Iterable<FeedID> feedIDs) final java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowers(FeedID... feedIDs) final java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowers(Limit limit, FeedID... feedIDs) final java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowers(Limit limit, Offset offset, FeedID... feeds) final java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowers(Limit limit, Offset offset, Iterable<FeedID> feedIDs) final java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowers(Limit limit, Iterable<FeedID> feedIDs) final java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowers(Offset offset, FeedID... feedIDs) final java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowers(Offset offset, Iterable<FeedID> feedIDs) final java8.util.concurrent.CompletableFuture<List<FollowRelation>>getFollowers(Iterable<FeedID> feedIDs) final java8.util.concurrent.CompletableFuture<FollowStats>getFollowStats(Iterable<String> followerSlugs, Iterable<String> followingSlugs) final FeedIDgetID()final StringgetSlug()final Stringfinal java8.util.concurrent.CompletableFuture<Void>removeActivityByForeignID(String foreignID) final java8.util.concurrent.CompletableFuture<Void>final java8.util.concurrent.CompletableFuture<Void>replaceActivityToTargets(Activity activity, FeedID... newTargets) final java8.util.concurrent.CompletableFuture<Void>replaceActivityToTargets(Activity activity, Iterable<FeedID> newTargets) final java8.util.concurrent.CompletableFuture<Void>final java8.util.concurrent.CompletableFuture<Void>unfollow(FlatFeed feed, KeepHistory keepHistory) final java8.util.concurrent.CompletableFuture<Void>updateActivityToTargets(Activity activity, FeedID[] add, FeedID[] remove) final java8.util.concurrent.CompletableFuture<Void>
-
Method Details
-
getClient
-
getID
-
getSlug
-
getUserID
-
addActivity
public final java8.util.concurrent.CompletableFuture<Activity> addActivity(Activity activity, RequestOption... options) throws StreamException - Throws:
StreamException
-
addCustomActivity
public final <T> java8.util.concurrent.CompletableFuture<T> addCustomActivity(T activity, RequestOption... options) throws StreamException - Throws:
StreamException
-
addActivities
public final java8.util.concurrent.CompletableFuture<List<Activity>> addActivities(Iterable<Activity> activities) throws StreamException - Throws:
StreamException
-
addCustomActivities
public final <T> java8.util.concurrent.CompletableFuture<List<T>> addCustomActivities(Iterable<T> activities) throws StreamException - Throws:
StreamException
-
addActivities
public final java8.util.concurrent.CompletableFuture<List<Activity>> addActivities(Activity... activities) throws StreamException - Throws:
StreamException
-
addActivities
public final java8.util.concurrent.CompletableFuture<List<Activity>> addActivities(Activity[] activities, RequestOption... options) throws StreamException - Throws:
StreamException
-
addCustomActivities
public final <T> java8.util.concurrent.CompletableFuture<List<T>> addCustomActivities(T... activities) throws StreamException - Throws:
StreamException
-
removeActivityByID
public final java8.util.concurrent.CompletableFuture<Void> removeActivityByID(String id) throws StreamException - Throws:
StreamException
-
removeActivityByForeignID
public final java8.util.concurrent.CompletableFuture<Void> removeActivityByForeignID(String foreignID) throws StreamException - Throws:
StreamException
-
follow
public final java8.util.concurrent.CompletableFuture<Void> follow(FlatFeed feed) throws StreamException - Throws:
StreamException
-
follow
public final java8.util.concurrent.CompletableFuture<Void> follow(FlatFeed feed, int activityCopyLimit) throws StreamException - Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowers(Iterable<FeedID> feedIDs) throws StreamException - Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowers(FeedID... feedIDs) throws StreamException - Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowers(Limit limit, Iterable<FeedID> feedIDs) throws StreamException - Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowers(Limit limit, FeedID... feedIDs) throws StreamException - Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowers(Offset offset, Iterable<FeedID> feedIDs) throws StreamException - Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowers(Offset offset, FeedID... feedIDs) throws StreamException - Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowers(Limit limit, Offset offset, Iterable<FeedID> feedIDs) throws StreamException - Throws:
StreamException
-
getFollowers
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowers(Limit limit, Offset offset, FeedID... feeds) throws StreamException - Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowed(Iterable<FeedID> feedIDs) throws StreamException - Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowed(FeedID... feedIDs) throws StreamException - Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowed(Offset offset, Iterable<FeedID> feedIDs) throws StreamException - Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowed(Offset offset, FeedID... feedIDs) throws StreamException - Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowed(Limit limit, Iterable<FeedID> feedIDs) throws StreamException - Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowed(Limit limit, FeedID... feedIDs) throws StreamException - Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowed(Limit limit, Offset offset, Iterable<FeedID> feedIDs) throws StreamException - Throws:
StreamException
-
getFollowed
public final java8.util.concurrent.CompletableFuture<List<FollowRelation>> getFollowed(Limit limit, Offset offset, FeedID... feeds) throws StreamException - Throws:
StreamException
-
unfollow
public final java8.util.concurrent.CompletableFuture<Void> unfollow(FlatFeed feed) throws StreamException - Throws:
StreamException
-
unfollow
public final java8.util.concurrent.CompletableFuture<Void> unfollow(FlatFeed feed, KeepHistory keepHistory) throws StreamException - Throws:
StreamException
-
getFollowStats
public final java8.util.concurrent.CompletableFuture<FollowStats> getFollowStats(Iterable<String> followerSlugs, Iterable<String> followingSlugs) throws StreamException - Throws:
StreamException
-
updateActivityToTargets
public final java8.util.concurrent.CompletableFuture<Void> updateActivityToTargets(Activity activity, Iterable<FeedID> add, Iterable<FeedID> remove) throws StreamException - Throws:
StreamException
-
updateActivityToTargets
public final java8.util.concurrent.CompletableFuture<Void> updateActivityToTargets(Activity activity, FeedID[] add, FeedID[] remove) throws StreamException - Throws:
StreamException
-
replaceActivityToTargets
public final java8.util.concurrent.CompletableFuture<Void> replaceActivityToTargets(Activity activity, Iterable<FeedID> newTargets) throws StreamException - Throws:
StreamException
-
replaceActivityToTargets
public final java8.util.concurrent.CompletableFuture<Void> replaceActivityToTargets(Activity activity, FeedID... newTargets) throws StreamException - Throws:
StreamException
-