Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PBE-0] add withownchild param #149

Merged
merged 4 commits into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions src/main/java/io/getstream/client/ReactionsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,43 +70,50 @@ public CompletableFuture<List<Reaction>> filter(
return reactions.filter(token, lookup, id, filter, limit, kind);
}

public CompletableFuture<List<Reaction>> filter(
LookupKind lookup, String id, Filter filter, Limit limit, String kind, Boolean withOwnChildren)
throws StreamException {
final Token token = buildReactionsToken(secret, TokenAction.READ);
return reactions.filter(token, lookup, id, filter, limit, kind, withOwnChildren);
}

public CompletableFuture<Paginated<Reaction>> paginatedFilter(LookupKind lookup, String id)
throws StreamException {
return paginatedFilter(
lookup, id, DefaultOptions.DEFAULT_FILTER, DefaultOptions.DEFAULT_LIMIT, "");
lookup, id, DefaultOptions.DEFAULT_FILTER, DefaultOptions.DEFAULT_LIMIT, "", false);
}

public CompletableFuture<Paginated<Reaction>> paginatedFilter(
LookupKind lookup, String id, Limit limit) throws StreamException {
return paginatedFilter(lookup, id, DefaultOptions.DEFAULT_FILTER, limit, "");
return paginatedFilter(lookup, id, DefaultOptions.DEFAULT_FILTER, limit, "", false);
}

public CompletableFuture<Paginated<Reaction>> paginatedFilter(
LookupKind lookup, String id, Filter filter) throws StreamException {
return paginatedFilter(lookup, id, filter, DefaultOptions.DEFAULT_LIMIT, "");
return paginatedFilter(lookup, id, filter, DefaultOptions.DEFAULT_LIMIT, "", false);
}

public CompletableFuture<Paginated<Reaction>> paginatedFilter(
LookupKind lookup, String id, String kind) throws StreamException {
return paginatedFilter(
lookup, id, DefaultOptions.DEFAULT_FILTER, DefaultOptions.DEFAULT_LIMIT, kind);
lookup, id, DefaultOptions.DEFAULT_FILTER, DefaultOptions.DEFAULT_LIMIT, kind, false);
}

public CompletableFuture<Paginated<Reaction>> paginatedFilter(
LookupKind lookup, String id, Filter filter, Limit limit) throws StreamException {
return paginatedFilter(lookup, id, filter, limit, "");
return paginatedFilter(lookup, id, filter, limit, "", false);
}

public CompletableFuture<Paginated<Reaction>> paginatedFilter(
LookupKind lookup, String id, Limit limit, String kind) throws StreamException {
return paginatedFilter(lookup, id, DefaultOptions.DEFAULT_FILTER, limit, kind);
return paginatedFilter(lookup, id, DefaultOptions.DEFAULT_FILTER, limit, kind, false);
}

public CompletableFuture<Paginated<Reaction>> paginatedFilter(
LookupKind lookup, String id, Filter filter, Limit limit, String kind)
LookupKind lookup, String id, Filter filter, Limit limit, String kind, Boolean withOwnChildren)
throws StreamException {
final Token token = buildReactionsToken(secret, TokenAction.READ);
return reactions.paginatedFilter(token, lookup, id, filter, limit, kind);
return reactions.paginatedFilter(token, lookup, id, filter, limit, kind, withOwnChildren);
}

public CompletableFuture<Paginated<Reaction>> paginatedFilter(String next)
Expand Down
Loading