IHandleImipMessage.php 707 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Calendar;
  8. use OCP\Calendar\Exceptions\CalendarException;
  9. /**
  10. * Extends the current ICalendar interface
  11. * to add a public write method to handle
  12. * iMIP data
  13. *
  14. * @link https://www.rfc-editor.org/rfc/rfc6047
  15. *
  16. * @since 26.0.0
  17. */
  18. interface IHandleImipMessage extends ICalendar {
  19. /**
  20. * Handle an iMIP VEvent for validation and processing
  21. *
  22. * @since 26.0.0
  23. *
  24. * @throws CalendarException on validation failure or calendar write error
  25. */
  26. public function handleIMipMessage(string $name, string $calendarData): void;
  27. }