summaryrefslogtreecommitdiffstats
path: root/lib/public/Activity/IEvent.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-06-15 15:01:52 +0200
committerRobin Appelman <robin@icewind.nl>2020-07-21 17:12:38 +0200
commitfb5ae20722a29890535296c8871a2edf4201289d (patch)
tree9d05b74ad3f3abd3fbd9be81ef59d5288d741172 /lib/public/Activity/IEvent.php
parentd35e8d7b2be708650037bc16f5be4122f5fa1082 (diff)
downloadnextcloud-server-fb5ae20722a29890535296c8871a2edf4201289d.tar.gz
nextcloud-server-fb5ae20722a29890535296c8871a2edf4201289d.zip
basic settings system for activity notifications
Signed-off-by: Robin Appelman <robin@icewind.nl>
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;
}