Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>pull/54377/head
parent
6d5dd4b389
commit
f95ce30994
@ -0,0 +1,40 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors |
||||
* SPDX-License-Identifier: AGPL-3.0-or-later |
||||
*/ |
||||
|
||||
namespace OCP\Notification; |
||||
|
||||
use OCP\AppFramework\Attribute\Consumable; |
||||
|
||||
/** |
||||
* Indicates the reason for preloading notifications to facilitate smarter decisions about what data |
||||
* to preload. |
||||
*/ |
||||
#[Consumable(since: '32.0.0')] |
||||
enum NotificationPreloadReason { |
||||
/** |
||||
* Preparing a single notification for many users. |
||||
* |
||||
* @since 32.0.0 |
||||
*/ |
||||
case Push; |
||||
|
||||
/** |
||||
* Preparing many notifications for many users. |
||||
* |
||||
* @since 32.0.0 |
||||
*/ |
||||
case Email; |
||||
|
||||
/** |
||||
* Preparing many notifications for a single user. |
||||
* |
||||
* @since 32.0.0 |
||||
*/ |
||||
case EndpointController; |
||||
} |
Loading…
Reference in new issue