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:
authorJoas Schilling <coding@schilljs.com>2016-10-28 15:55:53 +0300
committerJoas Schilling <coding@schilljs.com>2016-11-16 11:25:45 +0300
commit72f0d9981eca7b1be5832ea2d1a0cbd9526e85a4 (patch)
tree993ef2a9915bcdd8b9ebb8e3ecbc8015abccb918 /lib/public/Activity
parenta366602961769f2b7a5d3947a61713efde38cc2f (diff)
Add ROS and icon support to the events
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Activity')
-rw-r--r--lib/public/Activity/IEvent.php84
1 files changed, 84 insertions, 0 deletions
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
@@ -98,6 +98,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
*
* @param string $message
@@ -109,6 +144,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
*
* @param string $objectType
@@ -209,6 +279,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
*/