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:
authorBjoern Schiessle <bjoern@schiessle.org>2018-05-09 18:06:35 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2018-07-02 12:29:27 +0300
commitdb428ea5471a5be5517911b3bf2f3a6d3f86e297 (patch)
tree3921525a302150e75d968a47dff14be79f9ffa3b /lib/public/Federation/ICloudFederationProvider.php
parenta3948e8a126d6f84629841c8886fe0819ab04ad5 (diff)
send accept share notification (WIP)
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib/public/Federation/ICloudFederationProvider.php')
-rw-r--r--lib/public/Federation/ICloudFederationProvider.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/public/Federation/ICloudFederationProvider.php b/lib/public/Federation/ICloudFederationProvider.php
index 38a551000f0..0d87d76ee55 100644
--- a/lib/public/Federation/ICloudFederationProvider.php
+++ b/lib/public/Federation/ICloudFederationProvider.php
@@ -21,6 +21,7 @@
namespace OCP\Federation;
+use OCP\Federation\Exceptions\ActionNotSupportedException;
use OCP\Federation\Exceptions\ProviderCouldNotAddShareException;
use OCP\Federation\Exceptions\ShareNotFoundException;
@@ -60,13 +61,14 @@ interface ICloudFederationProvider {
/**
* notification received from another server
*
- * @param string $id unique ID of a already existing share
- * @param array $notification provider specific notification
+ * @param string $notificationType (e.g SHARE_ACCEPTED)
+ * @param array $message provider specific notification
*
* @throws ShareNotFoundException
+ * @throws ActionNotSupportedException
*
* @since 14.0.0
*/
- public function notificationReceived($id, $notification);
+ public function notificationReceived($notificationType, array $message);
}