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