From 9efbc9c1d533fb970a5cd89f154e3a4fb7ff882d Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Sun, 19 Dec 2021 18:11:35 -0300 Subject: Add comments reactions Signed-off-by: Vitor Mattos --- lib/public/Comments/IComment.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lib/public/Comments') diff --git a/lib/public/Comments/IComment.php b/lib/public/Comments/IComment.php index b9747aefb5b..8465eaf49f4 100644 --- a/lib/public/Comments/IComment.php +++ b/lib/public/Comments/IComment.php @@ -278,4 +278,25 @@ interface IComment { * @since 19.0.0 */ public function setReferenceId(?string $referenceId): IComment; + + /** + * Returns the reactions array if exists + * + * The keys is the emoji of reaction and the value is the total. + * + * @return array e.g. ["👍":1] + * @since 24.0.0 + */ + public function getReactions(): array; + + /** + * Set summarized array of reactions by reaction type + * + * The keys is the emoji of reaction and the value is the total. + * + * @param array|null $reactions e.g. ["👍":1] + * @return IComment + * @since 24.0.0 + */ + public function setReactions(?array $reactions): IComment; } -- cgit v1.2.3