0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-01-31 06:43:12 +00:00
nextcloud_server/apps/user_status/lib/ResponseDefinitions.php
Andy Scherzinger 8d8891c5bc
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-30 15:49:33 +02:00

45 lines
1,005 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\UserStatus;
/**
* @psalm-type UserStatusClearAtTimeType = "day"|"week"
*
* @psalm-type UserStatusClearAt = array{
* type: "period"|"end-of",
* time: int|UserStatusClearAtTimeType,
* }
*
* @psalm-type UserStatusPredefined = array{
* id: string,
* icon: string,
* message: string,
* clearAt: ?UserStatusClearAt,
* visible: ?bool,
* }
*
* @psalm-type UserStatusType = "online"|"away"|"dnd"|"busy"|"offline"|"invisible"
*
* @psalm-type UserStatusPublic = array{
* userId: string,
* message: ?string,
* icon: ?string,
* clearAt: ?int,
* status: UserStatusType,
* }
*
* @psalm-type UserStatusPrivate = UserStatusPublic&array{
* messageId: ?string,
* messageIsPredefined: bool,
* statusIsUserDefined: bool,
* }
*/
class ResponseDefinitions {
}