aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/notification/manager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/notification/manager.php')
-rw-r--r--lib/private/notification/manager.php16
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/private/notification/manager.php b/lib/private/notification/manager.php
index 1946c4203d4..f14929642dc 100644
--- a/lib/private/notification/manager.php
+++ b/lib/private/notification/manager.php
@@ -155,31 +155,27 @@ class Manager implements IManager {
}
/**
- * @param string $appId
- * @param string $objectType
- * @param int $objectId
- * @param string $user
+ * @param INotification $notification
* @return null
*/
- public function markProcessed($appId, $objectType, $objectId, $user = '') {
+ public function markProcessed(INotification $notification) {
$apps = $this->getApps();
foreach ($apps as $app) {
- $app->markProcessed($appId, $objectType, $objectId, $user);
+ $app->markProcessed($notification);
}
}
/**
- * @param string $user
- * @param string $appId
+ * @param INotification $notification
* @return int
*/
- public function getCount($user, $appId = '') {
+ public function getCount(INotification $notification) {
$apps = $this->getApps();
$count = 0;
foreach ($apps as $app) {
- $count += $app->markProcessed($user, $appId);
+ $count += $app->markProcessed($notification);
}
return $count;