From 72f0d9981eca7b1be5832ea2d1a0cbd9526e85a4 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 28 Oct 2016 14:55:53 +0200 Subject: Add ROS and icon support to the events Signed-off-by: Joas Schilling --- lib/public/Activity/IEvent.php | 84 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) (limited to 'lib/public/Activity') diff --git a/lib/public/Activity/IEvent.php b/lib/public/Activity/IEvent.php index 3af8a8b8277..6d587c381c2 100644 --- a/lib/public/Activity/IEvent.php +++ b/lib/public/Activity/IEvent.php @@ -97,6 +97,41 @@ interface IEvent { */ public function setSubject($subject, array $parameters = []); + /** + * @param string $subject + * @return $this + * @throws \InvalidArgumentException if the subject is invalid + * @since 9.2.0 + */ + public function setParsedSubject($subject); + + /** + * @return string + * @since 9.2.0 + */ + public function getParsedSubject(); + + /** + * @param string $subject + * @param array $parameters + * @return $this + * @throws \InvalidArgumentException if the subject or parameters are invalid + * @since 9.2.0 + */ + public function setRichSubject($subject, array $parameters = []); + + /** + * @return string + * @since 9.2.0 + */ + public function getRichSubject(); + + /** + * @return array[] + * @since 9.2.0 + */ + public function getRichSubjectParameters(); + /** * Set the message of the activity * @@ -108,6 +143,41 @@ interface IEvent { */ public function setMessage($message, array $parameters = []); + /** + * @param string $message + * @return $this + * @throws \InvalidArgumentException if the message is invalid + * @since 9.2.0 + */ + public function setParsedMessage($message); + + /** + * @return string + * @since 9.2.0 + */ + 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(); + /** * Set the object of the activity * @@ -208,6 +278,20 @@ interface IEvent { */ public function getLink(); + /** + * @param string $icon + * @return $this + * @throws \InvalidArgumentException if the icon is invalid + * @since 9.2.0 + */ + public function setIcon($icon); + + /** + * @return string + * @since 9.2.0 + */ + public function getIcon(); + /** * @return bool * @since 9.2.0 -- cgit v1.2.3