Fix AddressBook structure

This commit is contained in:
the-djmaze 2022-05-11 13:35:05 +02:00
parent aa69772127
commit 733a96a987
3 changed files with 76 additions and 57 deletions

View file

@ -5,4 +5,26 @@ namespace RainLoop\Providers\AddressBook;
interface AddressBookInterface
{
public function IsSupported() : bool;
public function IsSharingAllowed() : bool;
public function Sync(array $oConfig) : bool;
public function Export(string $sEmail, string $sType = 'vcf') : bool;
public function ContactSave(string $sEmail, Classes\Contact $oContact) : bool;
public function DeleteContacts(string $sEmail, array $aContactIds, bool $bSyncDb = true) : bool;
public function DeleteAllContacts(string $sEmail, bool $bSyncDb = true) : bool;
public function GetContacts(string $sEmail, int $iOffset = 0, int $iLimit = 20, string $sSearch = '', int &$iResultCount = 0) : array;
public function GetContactByID(string $sEmail, $mID, bool $bIsStrID = false) : ?Classes\Contact;
public function GetSuggestions(string $sEmail, string $sSearch, int $iLimit = 20) : array;
public function IncFrec(string $sEmail, array $aEmails, bool $bCreateAuto = true) : bool;
public function Test() : string;
}