IUser.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2017 Robin Appelman <robin@icewind.nl>
  4. *
  5. * @license GNU AGPL version 3 or any later version
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU Affero General Public License as
  9. * published by the Free Software Foundation, either version 3 of the
  10. * License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU Affero General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Affero General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. *
  20. */
  21. namespace OCP\Remote;
  22. /**
  23. * User info for a remote user
  24. *
  25. * @since 13.0.0
  26. */
  27. interface IUser {
  28. /**
  29. * @return string
  30. *
  31. * @since 13.0.0
  32. */
  33. public function getUserId();
  34. /**
  35. * @return string
  36. *
  37. * @since 13.0.0
  38. */
  39. public function getEmail();
  40. /**
  41. * @return string
  42. *
  43. * @since 13.0.0
  44. */
  45. public function getDisplayName();
  46. /**
  47. * @return string
  48. *
  49. * @since 13.0.0
  50. */
  51. public function getPhone();
  52. /**
  53. * @return string
  54. *
  55. * @since 13.0.0
  56. */
  57. public function getAddress();
  58. /**
  59. * @return string
  60. *
  61. * @since 13.0.0
  62. */
  63. public function getWebsite();
  64. /**
  65. * @return string
  66. *
  67. * @since 13.0.0
  68. */
  69. public function getTwitter();
  70. /**
  71. * @return string[]
  72. *
  73. * @since 13.0.0
  74. */
  75. public function getGroups();
  76. /**
  77. * @return string
  78. *
  79. * @since 13.0.0
  80. */
  81. public function getLanguage();
  82. /**
  83. * @return int
  84. *
  85. * @since 13.0.0
  86. */
  87. public function getUsedSpace();
  88. /**
  89. * @return int
  90. *
  91. * @since 13.0.0
  92. */
  93. public function getFreeSpace();
  94. /**
  95. * @return int
  96. *
  97. * @since 13.0.0
  98. */
  99. public function getTotalSpace();
  100. /**
  101. * @return int
  102. *
  103. * @since 13.0.0
  104. */
  105. public function getQuota();
  106. }