diff options
author | Vitor Mattos <vitor@php.rio> | 2021-12-19 18:11:35 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-01-21 08:37:04 -0300 |
commit | 9efbc9c1d533fb970a5cd89f154e3a4fb7ff882d (patch) | |
tree | fd5fdf014a86948e0b87a864d7c3a6fb29a76889 /lib/public/Comments | |
parent | 58798b835a1d57edf55ba9a2a319b15579fe82ce (diff) | |
download | nextcloud-server-9efbc9c1d533fb970a5cd89f154e3a4fb7ff882d.tar.gz nextcloud-server-9efbc9c1d533fb970a5cd89f154e3a4fb7ff882d.zip |
Add comments reactions
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib/public/Comments')
-rw-r--r-- | lib/public/Comments/IComment.php | 21 |
1 files changed, 21 insertions, 0 deletions
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<string, integer> 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<string, integer>|null $reactions e.g. ["👍":1] + * @return IComment + * @since 24.0.0 + */ + public function setReactions(?array $reactions): IComment; } |