From 21b83dc730c9eebd9eb4d8c9944f680514eb2121 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 1 Sep 2015 12:09:39 +0200 Subject: Allow getting the request type --- lib/private/notification/action.php | 8 ++++++++ lib/public/notification/iaction.php | 6 ++++++ 2 files changed, 14 insertions(+) (limited to 'lib') diff --git a/lib/private/notification/action.php b/lib/private/notification/action.php index 2f7c1a5b5f4..08f3d50bac2 100644 --- a/lib/private/notification/action.php +++ b/lib/private/notification/action.php @@ -121,6 +121,14 @@ class Action implements IAction { return $this->link; } + /** + * @return string + * @since 8.2.0 + */ + public function getRequestType() { + return $this->requestType; + } + /** * @param string $icon * @return $this diff --git a/lib/public/notification/iaction.php b/lib/public/notification/iaction.php index db60f6cedbb..64b95bdb5ad 100644 --- a/lib/public/notification/iaction.php +++ b/lib/public/notification/iaction.php @@ -75,6 +75,12 @@ interface IAction { */ public function getLink(); + /** + * @return string + * @since 8.2.0 + */ + public function getRequestType(); + /** * @param string $icon * @return $this -- cgit v1.2.3