Skip to content

Commit

Permalink
Merge pull request #149 from GetStream/withownchildren
Browse files Browse the repository at this point in the history
[PBE-0] add withownchild param
  • Loading branch information
xernobyl authored Mar 12, 2024
2 parents a837c8d + 4291946 commit 866a40e
Showing 1 changed file with 15 additions and 8 deletions.
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

0 comments on commit 866a40e

Please sign in to comment.