Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Activity/IEvent.php')
-rw-r--r--lib/public/Activity/IEvent.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/public/Activity/IEvent.php b/lib/public/Activity/IEvent.php
index 6c3c7dd5127..48fa6bc3659 100644
--- a/lib/public/Activity/IEvent.php
+++ b/lib/public/Activity/IEvent.php
@@ -364,4 +364,23 @@ interface IEvent {
* @since 11.0.0
*/
public function isValidParsed(): bool;
+
+ /**
+ * Set whether or not a notification should be automatically generated for this activity.
+ *
+ * Set this to `false` if the app already generates a notification for the event.
+ *
+ * @param bool $generate
+ * @return IEvent
+ * @since 20.0.0
+ */
+ public function setGenerateNotification(bool $generate): self;
+
+ /**
+ * whether or not a notification should be automatically generated for this activity.
+ *
+ * @return bool
+ * @since 20.0.0
+ */
+ public function getGenerateNotification(): bool;
}