Skip to content

Commit

Permalink
Update OCP
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis CI committed Jan 29, 2022
1 parent 3aca7ba commit 07ca35f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions OCP/Comments/ICommentsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public function getForObject(
* @param bool $includeLastKnown
* @return IComment[]
* @since 14.0.0
* @deprecated 24.0.0 - Use getCommentsWithVerbForObjectSinceComment instead
*/
public function getForObjectSince(
string $objectType,
Expand All @@ -141,6 +142,28 @@ public function getForObjectSince(
bool $includeLastKnown = false
): array;

/**
* @param string $objectType the object type, e.g. 'files'
* @param string $objectId the id of the object
* @param string[] $verbs List of verbs to filter by
* @param int $lastKnownCommentId the last known comment (will be used as offset)
* @param string $sortDirection direction of the comments (`asc` or `desc`)
* @param int $limit optional, number of maximum comments to be returned. if
* set to 0, all comments are returned.
* @param bool $includeLastKnown
* @return IComment[]
* @since 24.0.0
*/
public function getCommentsWithVerbForObjectSinceComment(
string $objectType,
string $objectId,
array $verbs,
int $lastKnownCommentId,
string $sortDirection = 'asc',
int $limit = 30,
bool $includeLastKnown = false
): array;

/**
* Search for comments with a given content
*
Expand Down Expand Up @@ -198,6 +221,7 @@ public function getNumberOfUnreadCommentsForObjects(string $objectType, array $o
* @param string $verb
* @return int
* @since 21.0.0
* @deprecated 24.0.0 - Use getNumberOfCommentsWithVerbsForObjectSinceComment instead
*/
public function getNumberOfCommentsForObjectSinceComment(string $objectType, string $objectId, int $lastRead, string $verb = ''): int;

Expand Down

0 comments on commit 07ca35f

Please sign in to comment.