-
- All Implemented Interfaces:
public final class ReactionsClientClient that allows you to work with Reaction.
-
-
Method Summary
Modifier and Type Method Description final Either<StreamError, Reaction>add(Reaction reaction)Add a new Reaction with the given data. final Either<StreamError, List<Reaction>>filter(Function1<FilterReactionsParams, Unit> params)Filter reactions that match the given params. final Either<StreamError, Unit>delete(String reactionId)Delete a reaction by id. final Either<StreamError, Unit>delete(Reaction reaction)Delete a reaction. final Either<StreamError, Reaction>update(Function1<UpdateReactionParams, Unit> params)Update an already existing reaction with the given params. -
-
Method Detail
-
add
final Either<StreamError, Reaction> add(Reaction reaction)
Add a new Reaction with the given data.
- Parameters:
reaction- The reaction to be added.
-
filter
final Either<StreamError, List<Reaction>> filter(Function1<FilterReactionsParams, Unit> params)
Filter reactions that match the given params.
- Parameters:
params- A function over FilterReactionsParams that defines params to be used.
-
delete
final Either<StreamError, Unit> delete(String reactionId)
Delete a reaction by id.
- Parameters:
reactionId- The id of the reaction to be deleted.
-
delete
final Either<StreamError, Unit> delete(Reaction reaction)
Delete a reaction.
- Parameters:
reaction- The reaction to be deleted.
-
update
final Either<StreamError, Reaction> update(Function1<UpdateReactionParams, Unit> params)
Update an already existing reaction with the given params.
- Parameters:
params- A function over UpdateReactionParams that defines params to be used.
-
-
-
-