1
0

IInstance.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\Remote;
  7. /**
  8. * Provides some basic info about a remote Nextcloud instance
  9. *
  10. * @since 13.0.0
  11. * @deprecated 23.0.0
  12. */
  13. interface IInstance {
  14. /**
  15. * @return string The url of the remote server without protocol
  16. *
  17. * @since 13.0.0
  18. * @deprecated 23.0.0
  19. */
  20. public function getUrl();
  21. /**
  22. * @return string The of of the remote server with protocol
  23. *
  24. * @since 13.0.0
  25. * @deprecated 23.0.0
  26. */
  27. public function getFullUrl();
  28. /**
  29. * @return string The full version string in '13.1.2.3' format
  30. *
  31. * @since 13.0.0
  32. * @deprecated 23.0.0
  33. */
  34. public function getVersion();
  35. /**
  36. * @return string 'http' or 'https'
  37. *
  38. * @since 13.0.0
  39. * @deprecated 23.0.0
  40. */
  41. public function getProtocol();
  42. /**
  43. * Check that the remote server is installed and not in maintenance mode
  44. *
  45. * @since 13.0.0
  46. * @deprecated 23.0.0
  47. *
  48. * @return bool
  49. */
  50. public function isActive();
  51. }