diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-10-31 11:51:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-31 11:51:02 +0100 |
commit | e416ee7b74db0fdf9d222817ee4f17b4daa97435 (patch) | |
tree | d5e8c627f7615678286595a5d49404eeadbd9aa3 /lib/public | |
parent | 6f65189a1c19705ac3efb8f4ae32bf34dd92be8a (diff) | |
parent | 54c0501ffad3fe732e6b118c9caeae8d5b42804a (diff) | |
download | nextcloud-server-e416ee7b74db0fdf9d222817ee4f17b4daa97435.tar.gz nextcloud-server-e416ee7b74db0fdf9d222817ee4f17b4daa97435.zip |
Merge pull request #1937 from nextcloud/ros-for-notification-message
Allow rich object strings in messages as well
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Notification/INotification.php | 21 |
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 |