AmityReactionRepositoryclass provides a convenient method to add, remove, and query reactions for any content. Currently, reactions are supported for Posts, Messages and Comments.
AmityReactionRepositoryclass provides two methods which gets detailed information about reactions to the post. Each information is provided though
getReactionsmethod. This method requires:
referenceTypeas a parameter and provides you with collections of
referenceIdis the reference id for Post, Message or Comment.
removeReactionmethods for adding and removing reactions respectively. Both methods accept the reaction name and
reactionparameter is the reaction name. This can be "like", "love", "wow" and other reaction names which has a maximum length of 100 characters. It is case sensitive. This means that "like" and "Like" are two different reactions.