From a6f792616c37bb63fa826bb6d897738ad5227d6d Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Fri, 2 Aug 2019 16:36:50 +0200 Subject: [PATCH] Implement getID and getName in Reminder/Notifier as required since Nextcloud 17 Signed-off-by: Georg Ehrke --- apps/dav/lib/CalDAV/Reminder/Notifier.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/apps/dav/lib/CalDAV/Reminder/Notifier.php b/apps/dav/lib/CalDAV/Reminder/Notifier.php index ff34208a79..3718d5b29a 100644 --- a/apps/dav/lib/CalDAV/Reminder/Notifier.php +++ b/apps/dav/lib/CalDAV/Reminder/Notifier.php @@ -55,6 +55,26 @@ class Notifier implements INotifier { $this->urlGenerator = $urlGenerator; } + /** + * Identifier of the notifier, only use [a-z0-9_] + * + * @return string + * @since 17.0.0 + */ + public function getID():string { + return 'dav'; + } + + /** + * Human readable name describing the notifier + * + * @return string + * @since 17.0.0 + */ + public function getName():string { + return $this->factory->get('dav')->t('Calendar'); + } + /** * @param INotification $notification * @param string $languageCode The code of the language that should be used to prepare the notification