2019-08-09 14:25:21 -04:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2019-08-09 14:25:21 -04:00
|
|
|
declare(strict_types=1);
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2019-08-09 14:25:21 -04:00
|
|
|
/**
|
2024-05-27 11:39:07 -04:00
|
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2019-08-09 14:25:21 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCA\DAV\CalDAV\Reminder;
|
|
|
|
|
|
|
|
|
|
use OCP\IUser;
|
|
|
|
|
use Sabre\VObject\Component\VEvent;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface INotificationProvider
|
|
|
|
|
*
|
|
|
|
|
* @package OCA\DAV\CalDAV\Reminder
|
|
|
|
|
*/
|
|
|
|
|
interface INotificationProvider {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Send notification
|
|
|
|
|
*
|
|
|
|
|
* @param VEvent $vevent
|
2023-01-18 08:22:15 -05:00
|
|
|
* @param string|null $calendarDisplayName
|
2022-11-01 10:49:54 -04:00
|
|
|
* @param string[] $principalEmailAddresses All email addresses associated to the principal owning the calendar object
|
2019-08-09 14:25:21 -04:00
|
|
|
* @param IUser[] $users
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function send(VEvent $vevent,
|
2023-01-18 08:22:15 -05:00
|
|
|
?string $calendarDisplayName,
|
2024-10-18 22:46:25 -04:00
|
|
|
array $principalEmailAddresses,
|
2020-10-05 09:12:57 -04:00
|
|
|
array $users = []): void;
|
2019-11-22 14:52:10 -05:00
|
|
|
}
|