io.getstream.cloud.CloudAggregatedFeed Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stream-java Show documentation
Show all versions of stream-java Show documentation
Stream Feeds Java Client for backend and android integrations
package io.getstream.cloud;
import static io.getstream.core.utils.Serialization.deserializeContainer;
import io.getstream.core.exceptions.StreamException;
import io.getstream.core.http.Response;
import io.getstream.core.models.Activity;
import io.getstream.core.models.EnrichedActivity;
import io.getstream.core.models.FeedID;
import io.getstream.core.models.Group;
import io.getstream.core.options.*;
import io.getstream.core.utils.DefaultOptions;
import java.io.IOException;
import java.util.List;
import java8.util.concurrent.CompletableFuture;
import java8.util.concurrent.CompletionException;
public class CloudAggregatedFeed extends CloudFeed {
CloudAggregatedFeed(CloudClient client, FeedID id) {
super(client, id);
}
CloudAggregatedFeed(CloudClient client, FeedID id, FeedSubscriber subscriber) {
super(client, id, subscriber);
}
public CompletableFuture extends List extends Group>> getActivities()
throws StreamException {
return getActivities(
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER);
}
public CompletableFuture extends List extends Group>> getActivities(Limit limit)
throws StreamException {
return getActivities(
limit,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER);
}
public CompletableFuture extends List extends Group>> getActivities(Offset offset)
throws StreamException {
return getActivities(
DefaultOptions.DEFAULT_LIMIT,
offset,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER);
}
public CompletableFuture extends List extends Group>> getActivities(Filter filter)
throws StreamException {
return getActivities(
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
filter,
DefaultOptions.DEFAULT_MARKER);
}
public CompletableFuture extends List extends Group>> getActivities(
ActivityMarker marker) throws StreamException {
return getActivities(
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
marker);
}
public CompletableFuture extends List extends Group>> getActivities(
Limit limit, Offset offset) throws StreamException {
return getActivities(
limit, offset, DefaultOptions.DEFAULT_FILTER, DefaultOptions.DEFAULT_MARKER);
}
public CompletableFuture extends List extends Group>> getActivities(
Limit limit, Filter filter) throws StreamException {
return getActivities(
limit, DefaultOptions.DEFAULT_OFFSET, filter, DefaultOptions.DEFAULT_MARKER);
}
public CompletableFuture extends List extends Group>> getActivities(
Limit limit, ActivityMarker marker) throws StreamException {
return getActivities(
limit, DefaultOptions.DEFAULT_OFFSET, DefaultOptions.DEFAULT_FILTER, marker);
}
public CompletableFuture extends List extends Group>> getActivities(
Filter filter, ActivityMarker marker) throws StreamException {
return getActivities(
DefaultOptions.DEFAULT_LIMIT, DefaultOptions.DEFAULT_OFFSET, filter, marker);
}
public CompletableFuture extends List extends Group>> getActivities(
Offset offset, ActivityMarker marker) throws StreamException {
return getActivities(
DefaultOptions.DEFAULT_LIMIT, offset, DefaultOptions.DEFAULT_FILTER, marker);
}
public CompletableFuture extends List extends Group>> getActivities(
Limit limit, Filter filter, ActivityMarker marker) throws StreamException {
return getActivities(limit, DefaultOptions.DEFAULT_OFFSET, filter, marker);
}
public CompletableFuture extends List extends Group>> getActivities(
Limit limit, Offset offset, ActivityMarker marker) throws StreamException {
return getActivities(limit, offset, DefaultOptions.DEFAULT_FILTER, marker);
}
CompletableFuture extends List extends Group>> getActivities(
Limit limit, Offset offset, Filter filter, ActivityMarker marker) throws StreamException {
return getClient()
.getActivities(getID(), limit, offset, filter, marker)
.thenApply(
(Response response) -> {
try {
return deserializeContainer(response, Group.class, Activity.class);
} catch (StreamException | IOException e) {
throw new CompletionException(e);
}
});
}
public CompletableFuture extends List extends Group>> getCustomActivities(
Class type) throws StreamException {
return getCustomActivities(
type,
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER);
}
public CompletableFuture extends List extends Group>> getCustomActivities(
Class type, Limit limit) throws StreamException {
return getCustomActivities(
type,
limit,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER);
}
public CompletableFuture extends List extends Group>> getCustomActivities(
Class type, Offset offset) throws StreamException {
return getCustomActivities(
type,
DefaultOptions.DEFAULT_LIMIT,
offset,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER);
}
public CompletableFuture extends List extends Group>> getCustomActivities(
Class type, Filter filter) throws StreamException {
return getCustomActivities(
type,
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
filter,
DefaultOptions.DEFAULT_MARKER);
}
public CompletableFuture extends List extends Group>> getCustomActivities(
Class type, ActivityMarker marker) throws StreamException {
return getCustomActivities(
type,
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
marker);
}
public CompletableFuture extends List extends Group>> getCustomActivities(
Class type, Limit limit, Offset offset) throws StreamException {
return getCustomActivities(
type, limit, offset, DefaultOptions.DEFAULT_FILTER, DefaultOptions.DEFAULT_MARKER);
}
public CompletableFuture extends List extends Group>> getCustomActivities(
Class type, Limit limit, Filter filter) throws StreamException {
return getCustomActivities(
type, limit, DefaultOptions.DEFAULT_OFFSET, filter, DefaultOptions.DEFAULT_MARKER);
}
public CompletableFuture extends List extends Group>> getCustomActivities(
Class type, Limit limit, ActivityMarker marker) throws StreamException {
return getCustomActivities(
type, limit, DefaultOptions.DEFAULT_OFFSET, DefaultOptions.DEFAULT_FILTER, marker);
}
public CompletableFuture extends List extends Group>> getCustomActivities(
Class type, Filter filter, ActivityMarker marker) throws StreamException {
return getCustomActivities(
type, DefaultOptions.DEFAULT_LIMIT, DefaultOptions.DEFAULT_OFFSET, filter, marker);
}
public CompletableFuture extends List extends Group>> getCustomActivities(
Class type, Offset offset, ActivityMarker marker) throws StreamException {
return getCustomActivities(
type, DefaultOptions.DEFAULT_LIMIT, offset, DefaultOptions.DEFAULT_FILTER, marker);
}
public CompletableFuture extends List extends Group>> getCustomActivities(
Class type, Limit limit, Filter filter, ActivityMarker marker) throws StreamException {
return getCustomActivities(type, limit, DefaultOptions.DEFAULT_OFFSET, filter, marker);
}
public CompletableFuture extends List extends Group>> getCustomActivities(
Class type, Limit limit, Offset offset, ActivityMarker marker) throws StreamException {
return getCustomActivities(type, limit, offset, DefaultOptions.DEFAULT_FILTER, marker);
}
CompletableFuture extends List extends Group>> getCustomActivities(
Class type, Limit limit, Offset offset, Filter filter, ActivityMarker marker)
throws StreamException {
return getClient()
.getActivities(getID(), limit, offset, filter, marker)
.thenApply(
(Response response) -> {
try {
return deserializeContainer(response, Group.class, type);
} catch (StreamException | IOException e) {
throw new CompletionException(e);
}
});
}
public CompletableFuture extends List extends Group>>
getEnrichedActivities() throws StreamException {
return getEnrichedActivities(
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Limit limit) throws StreamException {
return getEnrichedActivities(
limit,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
EnrichmentFlags flags) throws StreamException {
return getEnrichedActivities(
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER,
flags);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Offset offset) throws StreamException {
return getEnrichedActivities(
DefaultOptions.DEFAULT_LIMIT,
offset,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Filter filter) throws StreamException {
return getEnrichedActivities(
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
filter,
DefaultOptions.DEFAULT_MARKER,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
ActivityMarker marker) throws StreamException {
return getEnrichedActivities(
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
marker,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Limit limit, EnrichmentFlags flags) throws StreamException {
return getEnrichedActivities(
limit,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER,
flags);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Limit limit, Offset offset) throws StreamException {
return getEnrichedActivities(
limit,
offset,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Limit limit, Filter filter) throws StreamException {
return getEnrichedActivities(
limit,
DefaultOptions.DEFAULT_OFFSET,
filter,
DefaultOptions.DEFAULT_MARKER,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Limit limit, ActivityMarker marker) throws StreamException {
return getEnrichedActivities(
limit,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
marker,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Offset offset, EnrichmentFlags flags) throws StreamException {
return getEnrichedActivities(
DefaultOptions.DEFAULT_LIMIT,
offset,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER,
flags);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Filter filter, EnrichmentFlags flags) throws StreamException {
return getEnrichedActivities(
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
filter,
DefaultOptions.DEFAULT_MARKER,
flags);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Filter filter, ActivityMarker marker) throws StreamException {
return getEnrichedActivities(
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
filter,
marker,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Offset offset, ActivityMarker marker) throws StreamException {
return getEnrichedActivities(
DefaultOptions.DEFAULT_LIMIT,
offset,
DefaultOptions.DEFAULT_FILTER,
marker,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
ActivityMarker marker, EnrichmentFlags flags) throws StreamException {
return getEnrichedActivities(
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
marker,
flags);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Limit limit, Offset offset, EnrichmentFlags flags) throws StreamException {
return getEnrichedActivities(
limit, offset, DefaultOptions.DEFAULT_FILTER, DefaultOptions.DEFAULT_MARKER, flags);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Limit limit, Filter filter, EnrichmentFlags flags) throws StreamException {
return getEnrichedActivities(
limit, DefaultOptions.DEFAULT_OFFSET, filter, DefaultOptions.DEFAULT_MARKER, flags);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Limit limit, Filter filter, ActivityMarker marker) throws StreamException {
return getEnrichedActivities(
limit,
DefaultOptions.DEFAULT_OFFSET,
filter,
marker,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Limit limit, Offset offset, ActivityMarker marker) throws StreamException {
return getEnrichedActivities(
limit,
offset,
DefaultOptions.DEFAULT_FILTER,
marker,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Limit limit, ActivityMarker marker, EnrichmentFlags flags) throws StreamException {
return getEnrichedActivities(
limit, DefaultOptions.DEFAULT_OFFSET, DefaultOptions.DEFAULT_FILTER, marker, flags);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Filter filter, ActivityMarker marker, EnrichmentFlags flags) throws StreamException {
return getEnrichedActivities(
DefaultOptions.DEFAULT_LIMIT, DefaultOptions.DEFAULT_OFFSET, filter, marker, flags);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Offset offset, ActivityMarker marker, EnrichmentFlags flags) throws StreamException {
return getEnrichedActivities(
DefaultOptions.DEFAULT_LIMIT, offset, DefaultOptions.DEFAULT_FILTER, marker, flags);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Limit limit, Filter filter, ActivityMarker marker, EnrichmentFlags flags)
throws StreamException {
return getEnrichedActivities(limit, DefaultOptions.DEFAULT_OFFSET, filter, marker, flags);
}
public CompletableFuture extends List extends Group>> getEnrichedActivities(
Limit limit, Offset offset, ActivityMarker marker, EnrichmentFlags flags)
throws StreamException {
return getEnrichedActivities(limit, offset, DefaultOptions.DEFAULT_FILTER, marker, flags);
}
CompletableFuture extends List extends Group>> getEnrichedActivities(
Limit limit, Offset offset, Filter filter, ActivityMarker marker, EnrichmentFlags flags)
throws StreamException {
return getClient()
.getEnrichedActivities(getID(), limit, offset, filter, marker, flags)
.thenApply(
(Response response) -> {
try {
return deserializeContainer(response, Group.class, EnrichedActivity.class);
} catch (StreamException | IOException e) {
throw new CompletionException(e);
}
});
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type) throws StreamException {
return getEnrichedCustomActivities(
type,
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Limit limit) throws StreamException {
return getEnrichedCustomActivities(
type,
limit,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, EnrichmentFlags flags) throws StreamException {
return getEnrichedCustomActivities(
type,
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER,
flags);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Offset offset) throws StreamException {
return getEnrichedCustomActivities(
type,
DefaultOptions.DEFAULT_LIMIT,
offset,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Filter filter) throws StreamException {
return getEnrichedCustomActivities(
type,
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
filter,
DefaultOptions.DEFAULT_MARKER,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, ActivityMarker marker) throws StreamException {
return getEnrichedCustomActivities(
type,
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
marker,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Limit limit, EnrichmentFlags flags) throws StreamException {
return getEnrichedCustomActivities(
type,
limit,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER,
flags);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Limit limit, Offset offset) throws StreamException {
return getEnrichedCustomActivities(
type,
limit,
offset,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Limit limit, Filter filter) throws StreamException {
return getEnrichedCustomActivities(
type,
limit,
DefaultOptions.DEFAULT_OFFSET,
filter,
DefaultOptions.DEFAULT_MARKER,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Limit limit, ActivityMarker marker) throws StreamException {
return getEnrichedCustomActivities(
type,
limit,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
marker,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Offset offset, EnrichmentFlags flags) throws StreamException {
return getEnrichedCustomActivities(
type,
DefaultOptions.DEFAULT_LIMIT,
offset,
DefaultOptions.DEFAULT_FILTER,
DefaultOptions.DEFAULT_MARKER,
flags);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Filter filter, EnrichmentFlags flags) throws StreamException {
return getEnrichedCustomActivities(
type,
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
filter,
DefaultOptions.DEFAULT_MARKER,
flags);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Filter filter, ActivityMarker marker) throws StreamException {
return getEnrichedCustomActivities(
type,
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
filter,
marker,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Offset offset, ActivityMarker marker) throws StreamException {
return getEnrichedCustomActivities(
type,
DefaultOptions.DEFAULT_LIMIT,
offset,
DefaultOptions.DEFAULT_FILTER,
marker,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, ActivityMarker marker, EnrichmentFlags flags) throws StreamException {
return getEnrichedCustomActivities(
type,
DefaultOptions.DEFAULT_LIMIT,
DefaultOptions.DEFAULT_OFFSET,
DefaultOptions.DEFAULT_FILTER,
marker,
flags);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Limit limit, Offset offset, EnrichmentFlags flags) throws StreamException {
return getEnrichedCustomActivities(
type, limit, offset, DefaultOptions.DEFAULT_FILTER, DefaultOptions.DEFAULT_MARKER, flags);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Limit limit, Filter filter, EnrichmentFlags flags) throws StreamException {
return getEnrichedCustomActivities(
type, limit, DefaultOptions.DEFAULT_OFFSET, filter, DefaultOptions.DEFAULT_MARKER, flags);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Limit limit, Filter filter, ActivityMarker marker) throws StreamException {
return getEnrichedCustomActivities(
type,
limit,
DefaultOptions.DEFAULT_OFFSET,
filter,
marker,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Limit limit, Offset offset, ActivityMarker marker) throws StreamException {
return getEnrichedCustomActivities(
type,
limit,
offset,
DefaultOptions.DEFAULT_FILTER,
marker,
DefaultOptions.DEFAULT_ENRICHMENT_FLAGS);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Limit limit, ActivityMarker marker, EnrichmentFlags flags)
throws StreamException {
return getEnrichedCustomActivities(
type, limit, DefaultOptions.DEFAULT_OFFSET, DefaultOptions.DEFAULT_FILTER, marker, flags);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Filter filter, ActivityMarker marker, EnrichmentFlags flags)
throws StreamException {
return getEnrichedCustomActivities(
type, DefaultOptions.DEFAULT_LIMIT, DefaultOptions.DEFAULT_OFFSET, filter, marker, flags);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Offset offset, ActivityMarker marker, EnrichmentFlags flags)
throws StreamException {
return getEnrichedCustomActivities(
type, DefaultOptions.DEFAULT_LIMIT, offset, DefaultOptions.DEFAULT_FILTER, marker, flags);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Limit limit, Filter filter, ActivityMarker marker, EnrichmentFlags flags)
throws StreamException {
return getEnrichedCustomActivities(
type, limit, DefaultOptions.DEFAULT_OFFSET, filter, marker, flags);
}
public CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type, Limit limit, Offset offset, ActivityMarker marker, EnrichmentFlags flags)
throws StreamException {
return getEnrichedCustomActivities(
type, limit, offset, DefaultOptions.DEFAULT_FILTER, marker, flags);
}
CompletableFuture extends List extends Group>> getEnrichedCustomActivities(
Class type,
Limit limit,
Offset offset,
Filter filter,
ActivityMarker marker,
EnrichmentFlags flags)
throws StreamException {
return getClient()
.getEnrichedActivities(getID(), limit, offset, filter, marker, flags)
.thenApply(
(Response response) -> {
try {
return deserializeContainer(response, Group.class, type);
} catch (StreamException | IOException e) {
throw new CompletionException(e);
}
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy