1
0

ICloudFederationNotification.php 799 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\Federation;
  7. /**
  8. * Interface ICloudFederationNotification
  9. *
  10. *
  11. * @since 14.0.0
  12. */
  13. interface ICloudFederationNotification {
  14. /**
  15. * add a message to the notification
  16. *
  17. * @param string $notificationType (e.g. SHARE_ACCEPTED)
  18. * @param string $resourceType (e.g. file, calendar, contact,...)
  19. * @param string $providerId id of the share
  20. * @param array $notification payload of the notification
  21. *
  22. * @since 14.0.0
  23. */
  24. public function setMessage($notificationType, $resourceType, $providerId, array $notification);
  25. /**
  26. * get message, ready to send out
  27. *
  28. * @return array
  29. *
  30. * @since 14.0.0
  31. */
  32. public function getMessage();
  33. }