2020-08-04 13:34:55 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2020-08-04 13:34:55 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\UserStatus;
|
|
|
|
|
|
|
|
|
|
/**
|
2021-08-11 04:36:24 -04:00
|
|
|
* Interface IProvider
|
2020-08-04 13:34:55 -04:00
|
|
|
*
|
|
|
|
|
* @since 20.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface IProvider {
|
|
|
|
|
/**
|
|
|
|
|
* Gets the statuses for all users in $users
|
|
|
|
|
*
|
|
|
|
|
* @param string[] $userIds
|
2024-05-07 08:31:28 -04:00
|
|
|
* @return array<string, IUserStatus> array key being the userid, users without a status will not be in the returned array
|
2020-08-04 13:34:55 -04:00
|
|
|
* @since 20.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getUserStatuses(array $userIds):array;
|
|
|
|
|
}
|