summaryrefslogtreecommitdiffstats
path: root/lib/public/Comments
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-10-21 09:15:38 +0200
committerJoas Schilling <coding@schilljs.com>2020-10-21 09:15:38 +0200
commit326640462b7d04f6bbbc57858e8f978c9c46afcc (patch)
treebb84ef83b1c1612a33639f83694c643a43ac21a9 /lib/public/Comments
parent2cc35cc65d251ac52e1e09fe52381ccbf64eb89f (diff)
downloadnextcloud-server-326640462b7d04f6bbbc57858e8f978c9c46afcc.tar.gz
nextcloud-server-326640462b7d04f6bbbc57858e8f978c9c46afcc.zip
Add methods to get the number of comments and last comment since a date
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Comments')
-rw-r--r--lib/public/Comments/ICommentsManager.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/public/Comments/ICommentsManager.php b/lib/public/Comments/ICommentsManager.php
index 718391f7145..6e867e2f17e 100644
--- a/lib/public/Comments/ICommentsManager.php
+++ b/lib/public/Comments/ICommentsManager.php
@@ -167,6 +167,26 @@ interface ICommentsManager {
public function getNumberOfCommentsForObject($objectType, $objectId, \DateTime $notOlderThan = null, $verb = '');
/**
+ * @param string $objectType
+ * @param string $objectId
+ * @param int $lastRead
+ * @param string $verb
+ * @return int
+ * @since 21.0.0
+ */
+ public function getNumberOfCommentsForObjectSinceComment(string $objectType, string $objectId, int $lastRead, string $verb = ''): int;
+
+ /**
+ * @param string $objectType
+ * @param string $objectId
+ * @param \DateTime $beforeDate
+ * @param string $verb
+ * @return int
+ * @since 21.0.0
+ */
+ public function getLastCommentBeforeDate(string $objectType, string $objectId, \DateTime $beforeDate, string $verb = ''): int;
+
+ /**
* Get the number of unread comments for all files in a folder
*
* @param int $folderId