AmityReactionRepositoryclass provides a convenient method to add, remove, and query reactions for any content. Currently, reactions are supported for Posts, Messages and Comments.
AmityCommentRepositoryclasses provide two methods which get detailed information about reactions to the post and comment respectively. Each information is provided through
getReactionsmethod. The method returns collections of
removeReactionmethods for adding and removing reactions respectively. Both methods accept the
reactionNamethe the required parameter.
reactionNameparameter 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.