From 1ec92f70b845ba04c6a7ca8458bbda028d6904f2 Mon Sep 17 00:00:00 2001 From: Michiel de Jong Date: Fri, 20 Jan 2023 09:01:40 +0000 Subject: [PATCH] simplify docs --- lib/public/Share/IRemoteShareesSearch.php | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/lib/public/Share/IRemoteShareesSearch.php b/lib/public/Share/IRemoteShareesSearch.php index 784a7e7dd0ed..3ea338b60a70 100644 --- a/lib/public/Share/IRemoteShareesSearch.php +++ b/lib/public/Share/IRemoteShareesSearch.php @@ -21,16 +21,6 @@ namespace OCP\Share; -class ShareeValue { - public int $shareType; - public string $shareWith; -} - -class Sharee { - public string $label; - public ShareeValue $value; -} - /** * Interface IRemoteShareesSearch * Used in the ShareesController of the files_sharing app. @@ -44,8 +34,14 @@ interface IRemoteShareesSearch { /** * Return the identifier of this provider. * @param string search string for autocomplete - * @return Shareee[] one ISharee object per match - * @since 10.0.0 + * @return array[] this function should return an array + * where each element is an associative array, containing: + * - label: a string to display as label + * - value: an associative array containing: + * - shareType: int, to be used as share type + * - shareWith: string, identifying the sharee + * + * @since 10.11.0 */ public function search($search); }