aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Notification
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-10-27 15:43:34 +0200
committerJoas Schilling <coding@schilljs.com>2016-10-31 10:37:37 +0100
commit2c0b5dee19f1276a40a6dfdf5e13e7d5bafb20f3 (patch)
tree0b6342bd0b567911d26e5deab3a769fb8c85be0c /lib/public/Notification
parent6d2d069c172f1af72f134e32f4e8fc1fffbed80b (diff)
downloadnextcloud-server-2c0b5dee19f1276a40a6dfdf5e13e7d5bafb20f3.tar.gz
nextcloud-server-2c0b5dee19f1276a40a6dfdf5e13e7d5bafb20f3.zip
Allow rich object strings in messages as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Notification')
-rw-r--r--lib/public/Notification/INotification.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/public/Notification/INotification.php b/lib/public/Notification/INotification.php
index 3a8bde0a375..55109a5ee2e 100644
--- a/lib/public/Notification/INotification.php
+++ b/lib/public/Notification/INotification.php
@@ -184,6 +184,27 @@ interface INotification {
public function getParsedMessage();
/**
+ * @param string $message
+ * @param array $parameters
+ * @return $this
+ * @throws \InvalidArgumentException if the message or parameters are invalid
+ * @since 9.2.0
+ */
+ public function setRichMessage($message, array $parameters = []);
+
+ /**
+ * @return string
+ * @since 9.2.0
+ */
+ public function getRichMessage();
+
+ /**
+ * @return array[]
+ * @since 9.2.0
+ */
+ public function getRichMessageParameters();
+
+ /**
* @param string $link
* @return $this
* @throws \InvalidArgumentException if the link is invalid