diff options
author | Georg Ehrke <developer@georgehrke.com> | 2020-08-04 19:34:55 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2020-08-05 13:48:46 +0200 |
commit | 0e0e0d19e8d57f9840348adde5a84d0e690dcebe (patch) | |
tree | bf4842a70cf77cd1bb53a84c1b5c0a53d6cc6b51 /apps/user_status/lib/Service | |
parent | 05813561691aca15116334464a64e8be054ddcbf (diff) | |
download | nextcloud-server-0e0e0d19e8d57f9840348adde5a84d0e690dcebe.tar.gz nextcloud-server-0e0e0d19e8d57f9840348adde5a84d0e690dcebe.zip |
Provide a PHP Api for UserStatus
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/user_status/lib/Service')
-rw-r--r-- | apps/user_status/lib/Service/StatusService.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/user_status/lib/Service/StatusService.php b/apps/user_status/lib/Service/StatusService.php index 83fcd0a8f02..2cfdd5109a5 100644 --- a/apps/user_status/lib/Service/StatusService.php +++ b/apps/user_status/lib/Service/StatusService.php @@ -105,6 +105,16 @@ class StatusService { } /** + * @param array $userIds + * @return UserStatus[] + */ + public function findByUserIds(array $userIds):array { + return array_map(function ($status) { + return $this->processStatus($status); + }, $this->mapper->findByUserIds($userIds)); + } + + /** * @param string $userId * @param string $status * @param int|null $statusTimestamp |