namespace OC;
+use OCP\Constants;
+use OCP\Contacts\IManager;
use OCP\IAddressBook;
-class ContactsManager implements \OCP\Contacts\IManager {
+class ContactsManager implements IManager {
/**
* This function is used to search and find contacts within the users address books.
return null;
}
- if ($addressBook->getPermissions() & \OCP\Constants::PERMISSION_DELETE) {
+ if ($addressBook->getPermissions() & Constants::PERMISSION_DELETE) {
return $addressBook->delete($id);
}
return null;
}
- if ($addressBook->getPermissions() & \OCP\Constants::PERMISSION_CREATE) {
+ if ($addressBook->getPermissions() & Constants::PERMISSION_CREATE) {
return $addressBook->createOrUpdate($properties);
}
* Return a list of the user's addressbooks display names
* ! The addressBook displayName are not unique, please use getUserAddressBooks
*
- * @return array
+ * @return IAddressBook[]
* @since 6.0.0
* @deprecated 16.0.0 - Use `$this->getUserAddressBooks()` instead
*/