@@ -362,6 +362,11 @@ discard block |
||
362 | 362 | return $result; |
363 | 363 | } |
364 | 364 | |
365 | + /** |
|
366 | + * @param string $token |
|
367 | + * @param string $name |
|
368 | + * @param integer $remote_id |
|
369 | + */ |
|
365 | 370 | protected function sendOcmRemoteShare(Address $shareWithAddress, Address $ownerAddress, Address $sharedByAddress, $token, $name, $remote_id) { |
366 | 371 | $fields = [ |
367 | 372 | 'shareWith' => $shareWithAddress->getCloudId(), |
@@ -390,6 +395,11 @@ discard block |
||
390 | 395 | return false; |
391 | 396 | } |
392 | 397 | |
398 | + /** |
|
399 | + * @param string $token |
|
400 | + * @param string $name |
|
401 | + * @param integer $remote_id |
|
402 | + */ |
|
393 | 403 | protected function sendPreOcmRemoteShare(Address $shareWithAddress, Address $ownerAddress, Address $sharedByAddress, $token, $name, $remote_id) { |
394 | 404 | $fields = [ |
395 | 405 | 'shareWith' => $shareWithAddress->getUserId(), |
@@ -22,7 +22,6 @@ |
||
22 | 22 | namespace OCA\FederatedFileSharing\Ocm; |
23 | 23 | |
24 | 24 | use OCA\FederatedFileSharing\Ocm\Notification\FileNotification; |
25 | -use OCP\Constants; |
|
26 | 25 | |
27 | 26 | /** |
28 | 27 | * Class NotificationManager |