Signed-off-by: Georg Ehrke <developer@georgehrke.com>pull/22041/head
parent
5ced155032
commit
67f1ef4658
@ -0,0 +1,72 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class AddressBookCreatedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class AddressBookCreatedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $addressBookId; |
||||
|
||||
/** @var array */ |
||||
private $addressBookData; |
||||
|
||||
/** |
||||
* AddressBookCreatedEvent constructor. |
||||
* |
||||
* @param int $addressBookId |
||||
* @param array $addressBookData |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $addressBookId, |
||||
array $addressBookData) { |
||||
parent::__construct(); |
||||
$this->addressBookId = $addressBookId; |
||||
$this->addressBookData = $addressBookData; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAddressBookId(): int { |
||||
return $this->addressBookId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAddressBookData(): array { |
||||
return $this->addressBookData; |
||||
} |
||||
} |
||||
@ -0,0 +1,86 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class AddressBookDeletedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class AddressBookDeletedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $addressBookId; |
||||
|
||||
/** @var array */ |
||||
private $addressBookData; |
||||
|
||||
/** @var array */ |
||||
private $shares; |
||||
|
||||
/** |
||||
* AddressBookDeletedEvent constructor. |
||||
* |
||||
* @param int $addressBookId |
||||
* @param array $addressBookData |
||||
* @param array $shares |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $addressBookId, |
||||
array $addressBookData, |
||||
array $shares) { |
||||
parent::__construct(); |
||||
$this->addressBookId = $addressBookId; |
||||
$this->addressBookData = $addressBookData; |
||||
$this->shares = $shares; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAddressBookId():int { |
||||
return $this->addressBookId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAddressBookData(): array { |
||||
return $this->addressBookData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getShares(): array { |
||||
return $this->shares; |
||||
} |
||||
} |
||||
@ -0,0 +1,114 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class AddressBookShareUpdatedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class AddressBookShareUpdatedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $addressBookId; |
||||
|
||||
/** @var array */ |
||||
private $addressBookData; |
||||
|
||||
/** @var array */ |
||||
private $oldShares; |
||||
|
||||
/** @var array */ |
||||
private $added; |
||||
|
||||
/** @var array */ |
||||
private $removed; |
||||
|
||||
/** |
||||
* AddressBookShareUpdatedEvent constructor. |
||||
* |
||||
* @param int $addressBookId |
||||
* @param array $addressBookData |
||||
* @param array $oldShares |
||||
* @param array $added |
||||
* @param array $removed |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $addressBookId, |
||||
array $addressBookData, |
||||
array $oldShares, |
||||
array $added, |
||||
array $removed) { |
||||
parent::__construct(); |
||||
$this->addressBookId = $addressBookId; |
||||
$this->addressBookData = $addressBookData; |
||||
$this->oldShares = $oldShares; |
||||
$this->added = $added; |
||||
$this->removed = $removed; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAddressBookId(): int { |
||||
return $this->addressBookId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAddressBookData(): array { |
||||
return $this->addressBookData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getOldShares(): array { |
||||
return $this->oldShares; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAdded(): array { |
||||
return $this->added; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getRemoved(): array { |
||||
return $this->removed; |
||||
} |
||||
} |
||||
@ -0,0 +1,100 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class AddressBookUpdatedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class AddressBookUpdatedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $addressBookId; |
||||
|
||||
/** @var array */ |
||||
private $addressBookData; |
||||
|
||||
/** @var array */ |
||||
private $shares; |
||||
|
||||
/** @var array */ |
||||
private $mutations; |
||||
|
||||
/** |
||||
* AddressBookUpdatedEvent constructor. |
||||
* |
||||
* @param int $addressBookId |
||||
* @param array $addressBookData |
||||
* @param array $shares |
||||
* @param array $mutations |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $addressBookId, |
||||
array $addressBookData, |
||||
array $shares, |
||||
array $mutations) { |
||||
parent::__construct(); |
||||
$this->addressBookId = $addressBookId; |
||||
$this->addressBookData = $addressBookData; |
||||
$this->shares = $shares; |
||||
$this->mutations = $mutations; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAddressBookId(): int { |
||||
return $this->addressBookId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAddressBookData(): array { |
||||
return $this->addressBookData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getShares(): array { |
||||
return $this->shares; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getMutations(): array { |
||||
return $this->mutations; |
||||
} |
||||
} |
||||
@ -0,0 +1,100 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class CachedCalendarObjectCreatedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class CachedCalendarObjectCreatedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $subscriptionId; |
||||
|
||||
/** @var array */ |
||||
private $subscriptionData; |
||||
|
||||
/** @var array */ |
||||
private $shares; |
||||
|
||||
/** @var array */ |
||||
private $objectData; |
||||
|
||||
/** |
||||
* CachedCalendarObjectCreatedEvent constructor. |
||||
* |
||||
* @param int $subscriptionId |
||||
* @param array $subscriptionData |
||||
* @param array $shares |
||||
* @param array $objectData |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $subscriptionId, |
||||
array $subscriptionData, |
||||
array $shares, |
||||
array $objectData) { |
||||
parent::__construct(); |
||||
$this->subscriptionId = $subscriptionId; |
||||
$this->subscriptionData = $subscriptionData; |
||||
$this->shares = $shares; |
||||
$this->objectData = $objectData; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getSubscriptionId(): int { |
||||
return $this->subscriptionId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getSubscriptionData(): array { |
||||
return $this->subscriptionData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getShares(): array { |
||||
return $this->shares; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getObjectData(): array { |
||||
return $this->objectData; |
||||
} |
||||
} |
||||
@ -0,0 +1,100 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class CachedCalendarObjectDeletedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class CachedCalendarObjectDeletedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $subscriptionId; |
||||
|
||||
/** @var array */ |
||||
private $subscriptionData; |
||||
|
||||
/** @var array */ |
||||
private $shares; |
||||
|
||||
/** @var array */ |
||||
private $objectData; |
||||
|
||||
/** |
||||
* CachedCalendarObjectDeletedEvent constructor. |
||||
* |
||||
* @param int $subscriptionId |
||||
* @param array $subscriptionData |
||||
* @param array $shares |
||||
* @param array $objectData |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $subscriptionId, |
||||
array $subscriptionData, |
||||
array $shares, |
||||
array $objectData) { |
||||
parent::__construct(); |
||||
$this->subscriptionId = $subscriptionId; |
||||
$this->subscriptionData = $subscriptionData; |
||||
$this->shares = $shares; |
||||
$this->objectData = $objectData; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getSubscriptionId(): int { |
||||
return $this->subscriptionId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getSubscriptionData(): array { |
||||
return $this->subscriptionData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getShares(): array { |
||||
return $this->shares; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getObjectData(): array { |
||||
return $this->objectData; |
||||
} |
||||
} |
||||
@ -0,0 +1,100 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class CachedCalendarObjectUpdatedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class CachedCalendarObjectUpdatedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $subscriptionId; |
||||
|
||||
/** @var array */ |
||||
private $subscriptionData; |
||||
|
||||
/** @var array */ |
||||
private $shares; |
||||
|
||||
/** @var array */ |
||||
private $objectData; |
||||
|
||||
/** |
||||
* CachedCalendarObjectUpdatedEvent constructor. |
||||
* |
||||
* @param int $subscriptionId |
||||
* @param array $subscriptionData |
||||
* @param array $shares |
||||
* @param array $objectData |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $subscriptionId, |
||||
array $subscriptionData, |
||||
array $shares, |
||||
array $objectData) { |
||||
parent::__construct(); |
||||
$this->subscriptionId = $subscriptionId; |
||||
$this->subscriptionData = $subscriptionData; |
||||
$this->shares = $shares; |
||||
$this->objectData = $objectData; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getSubscriptionId(): int { |
||||
return $this->subscriptionId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getSubscriptionData(): array { |
||||
return $this->subscriptionData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getShares(): array { |
||||
return $this->shares; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getObjectData(): array { |
||||
return $this->objectData; |
||||
} |
||||
} |
||||
@ -0,0 +1,72 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class CalendarCreatedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class CalendarCreatedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $calendarId; |
||||
|
||||
/** @var array */ |
||||
private $calendarData; |
||||
|
||||
/** |
||||
* CalendarCreatedEvent constructor. |
||||
* |
||||
* @param int $calendarId |
||||
* @param array $calendarData |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $calendarId, |
||||
array $calendarData) { |
||||
parent::__construct(); |
||||
$this->calendarId = $calendarId; |
||||
$this->calendarData = $calendarData; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarId(): int { |
||||
return $this->calendarId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarData(): array { |
||||
return $this->calendarData; |
||||
} |
||||
} |
||||
@ -0,0 +1,86 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class CalendarDeletedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class CalendarDeletedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $calendarId; |
||||
|
||||
/** @var array */ |
||||
private $calendarData; |
||||
|
||||
/** @var array */ |
||||
private $shares; |
||||
|
||||
/** |
||||
* CalendarDeletedEvent constructor. |
||||
* |
||||
* @param int $calendarId |
||||
* @param array $calendarData |
||||
* @param array $shares |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $calendarId, |
||||
array $calendarData, |
||||
array $shares) { |
||||
parent::__construct(); |
||||
$this->calendarId = $calendarId; |
||||
$this->calendarData = $calendarData; |
||||
$this->shares = $shares; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarId(): int { |
||||
return $this->calendarId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarData(): array { |
||||
return $this->calendarData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getShares(): array { |
||||
return $this->shares; |
||||
} |
||||
} |
||||
@ -0,0 +1,100 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class CalendarObjectCreatedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class CalendarObjectCreatedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $calendarId; |
||||
|
||||
/** @var array */ |
||||
private $calendarData; |
||||
|
||||
/** @var array */ |
||||
private $shares; |
||||
|
||||
/** @var array */ |
||||
private $objectData; |
||||
|
||||
/** |
||||
* CalendarObjectCreatedEvent constructor. |
||||
* |
||||
* @param int $calendarId |
||||
* @param array $calendarData |
||||
* @param array $shares |
||||
* @param array $objectData |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $calendarId, |
||||
array $calendarData, |
||||
array $shares, |
||||
array $objectData) { |
||||
parent::__construct(); |
||||
$this->calendarId = $calendarId; |
||||
$this->calendarData = $calendarData; |
||||
$this->shares = $shares; |
||||
$this->objectData = $objectData; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarId(): int { |
||||
return $this->calendarId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarData(): array { |
||||
return $this->calendarData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getShares(): array { |
||||
return $this->shares; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getObjectData(): array { |
||||
return $this->objectData; |
||||
} |
||||
} |
||||
@ -0,0 +1,100 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class CalendarObjectDeletedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class CalendarObjectDeletedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $calendarId; |
||||
|
||||
/** @var array */ |
||||
private $calendarData; |
||||
|
||||
/** @var array */ |
||||
private $shares; |
||||
|
||||
/** @var array */ |
||||
private $objectData; |
||||
|
||||
/** |
||||
* CalendarObjectDeletedEvent constructor. |
||||
* |
||||
* @param int $calendarId |
||||
* @param array $calendarData |
||||
* @param array $shares |
||||
* @param array $objectData |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $calendarId, |
||||
array $calendarData, |
||||
array $shares, |
||||
array $objectData) { |
||||
parent::__construct(); |
||||
$this->calendarId = $calendarId; |
||||
$this->calendarData = $calendarData; |
||||
$this->shares = $shares; |
||||
$this->objectData = $objectData; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarId(): int { |
||||
return $this->calendarId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarData(): array { |
||||
return $this->calendarData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getShares(): array { |
||||
return $this->shares; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getObjectData(): array { |
||||
return $this->objectData; |
||||
} |
||||
} |
||||
@ -0,0 +1,100 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class CalendarObjectUpdatedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class CalendarObjectUpdatedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $calendarId; |
||||
|
||||
/** @var array */ |
||||
private $calendarData; |
||||
|
||||
/** @var array */ |
||||
private $shares; |
||||
|
||||
/** @var array */ |
||||
private $objectData; |
||||
|
||||
/** |
||||
* CalendarObjectUpdatedEvent constructor. |
||||
* |
||||
* @param int $calendarId |
||||
* @param array $calendarData |
||||
* @param array $shares |
||||
* @param array $objectData |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $calendarId, |
||||
array $calendarData, |
||||
array $shares, |
||||
array $objectData) { |
||||
parent::__construct(); |
||||
$this->calendarId = $calendarId; |
||||
$this->calendarData = $calendarData; |
||||
$this->shares = $shares; |
||||
$this->objectData = $objectData; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarId(): int { |
||||
return $this->calendarId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarData(): array { |
||||
return $this->calendarData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getShares(): array { |
||||
return $this->shares; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getObjectData(): array { |
||||
return $this->objectData; |
||||
} |
||||
} |
||||
@ -0,0 +1,86 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class CalendarPublishedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class CalendarPublishedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $calendarId; |
||||
|
||||
/** @var array */ |
||||
private $calendarData; |
||||
|
||||
/** @var string */ |
||||
private $publicUri; |
||||
|
||||
/** |
||||
* CalendarPublishedEvent constructor. |
||||
* |
||||
* @param int $calendarId |
||||
* @param array $calendarData |
||||
* @param string $publicUri |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $calendarId, |
||||
array $calendarData, |
||||
string $publicUri) { |
||||
parent::__construct(); |
||||
$this->calendarId = $calendarId; |
||||
$this->calendarData = $calendarData; |
||||
$this->publicUri = $publicUri; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarId(): int { |
||||
return $this->calendarId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarData(): array { |
||||
return $this->calendarData; |
||||
} |
||||
|
||||
/** |
||||
* @return string |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getPublicUri(): string { |
||||
return $this->publicUri; |
||||
} |
||||
} |
||||
@ -0,0 +1,114 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class CalendarShareUpdatedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class CalendarShareUpdatedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $calendarId; |
||||
|
||||
/** @var array */ |
||||
private $calendarData; |
||||
|
||||
/** @var array */ |
||||
private $oldShares; |
||||
|
||||
/** @var array */ |
||||
private $added; |
||||
|
||||
/** @var array */ |
||||
private $removed; |
||||
|
||||
/** |
||||
* CalendarShareUpdatedEvent constructor. |
||||
* |
||||
* @param int $calendarId |
||||
* @param array $calendarData |
||||
* @param array $oldShares |
||||
* @param array $added |
||||
* @param array $removed |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $calendarId, |
||||
array $calendarData, |
||||
array $oldShares, |
||||
array $added, |
||||
array $removed) { |
||||
parent::__construct(); |
||||
$this->calendarId = $calendarId; |
||||
$this->calendarData = $calendarData; |
||||
$this->oldShares = $oldShares; |
||||
$this->added = $added; |
||||
$this->removed = $removed; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarId(): int { |
||||
return $this->calendarId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarData(): array { |
||||
return $this->calendarData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getOldShares(): array { |
||||
return $this->oldShares; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAdded(): array { |
||||
return $this->added; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getRemoved(): array { |
||||
return $this->removed; |
||||
} |
||||
} |
||||
@ -0,0 +1,72 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class CalendarPublishedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class CalendarUnpublishedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $calendarId; |
||||
|
||||
/** @var array */ |
||||
private $calendarData; |
||||
|
||||
/** |
||||
* CalendarUnpublishedEvent constructor. |
||||
* |
||||
* @param int $calendarId |
||||
* @param array $calendarData |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $calendarId, |
||||
array $calendarData) { |
||||
parent::__construct(); |
||||
$this->calendarId = $calendarId; |
||||
$this->calendarData = $calendarData; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarId(): int { |
||||
return $this->calendarId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarData(): array { |
||||
return $this->calendarData; |
||||
} |
||||
} |
||||
@ -0,0 +1,100 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class CalendarUpdatedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class CalendarUpdatedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $calendarId; |
||||
|
||||
/** @var array */ |
||||
private $calendarData; |
||||
|
||||
/** @var array */ |
||||
private $shares; |
||||
|
||||
/** @var array */ |
||||
private $mutations; |
||||
|
||||
/** |
||||
* CalendarUpdatedEvent constructor. |
||||
* |
||||
* @param int $calendarId |
||||
* @param array $calendarData |
||||
* @param array $shares |
||||
* @param array $mutations |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $calendarId, |
||||
array $calendarData, |
||||
array $shares, |
||||
array $mutations) { |
||||
parent::__construct(); |
||||
$this->calendarId = $calendarId; |
||||
$this->calendarData = $calendarData; |
||||
$this->shares = $shares; |
||||
$this->mutations = $mutations; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarId(): int { |
||||
return $this->calendarId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCalendarData(): array { |
||||
return $this->calendarData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getShares(): array { |
||||
return $this->shares; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getMutations(): array { |
||||
return $this->mutations; |
||||
} |
||||
} |
||||
@ -0,0 +1,100 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class CardCreatedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class CardCreatedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $addressBookId; |
||||
|
||||
/** @var array */ |
||||
private $addressBookData; |
||||
|
||||
/** @var array */ |
||||
private $shares; |
||||
|
||||
/** @var array */ |
||||
private $cardData; |
||||
|
||||
/** |
||||
* CardCreatedEvent constructor. |
||||
* |
||||
* @param int $addressBookId |
||||
* @param array $addressBookData |
||||
* @param array $shares |
||||
* @param array $cardData |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $addressBookId, |
||||
array $addressBookData, |
||||
array $shares, |
||||
array $cardData) { |
||||
parent::__construct(); |
||||
$this->addressBookId = $addressBookId; |
||||
$this->addressBookData = $addressBookData; |
||||
$this->shares = $shares; |
||||
$this->cardData = $cardData; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAddressBookId(): int { |
||||
return $this->addressBookId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAddressBookData(): array { |
||||
return $this->addressBookData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getShares(): array { |
||||
return $this->shares; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCardData(): array { |
||||
return $this->cardData; |
||||
} |
||||
} |
||||
@ -0,0 +1,100 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class CardDeletedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class CardDeletedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $addressBookId; |
||||
|
||||
/** @var array */ |
||||
private $addressBookData; |
||||
|
||||
/** @var array */ |
||||
private $shares; |
||||
|
||||
/** @var array */ |
||||
private $cardData; |
||||
|
||||
/** |
||||
* CardDeletedEvent constructor. |
||||
* |
||||
* @param int $addressBookId |
||||
* @param array $addressBookData |
||||
* @param array $shares |
||||
* @param array $cardData |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $addressBookId, |
||||
array $addressBookData, |
||||
array $shares, |
||||
array $cardData) { |
||||
parent::__construct(); |
||||
$this->addressBookId = $addressBookId; |
||||
$this->addressBookData = $addressBookData; |
||||
$this->shares = $shares; |
||||
$this->cardData = $cardData; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAddressBookId(): int { |
||||
return $this->addressBookId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAddressBookData(): array { |
||||
return $this->addressBookData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getShares(): array { |
||||
return $this->shares; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCardData(): array { |
||||
return $this->cardData; |
||||
} |
||||
} |
||||
@ -0,0 +1,100 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class CardUpdatedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class CardUpdatedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $addressBookId; |
||||
|
||||
/** @var array */ |
||||
private $addressBookData; |
||||
|
||||
/** @var array */ |
||||
private $shares; |
||||
|
||||
/** @var array */ |
||||
private $cardData; |
||||
|
||||
/** |
||||
* CardUpdatedEvent constructor. |
||||
* |
||||
* @param int $addressBookId |
||||
* @param array $addressBookData |
||||
* @param array $shares |
||||
* @param array $cardData |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $addressBookId, |
||||
array $addressBookData, |
||||
array $shares, |
||||
array $cardData) { |
||||
parent::__construct(); |
||||
$this->addressBookId = $addressBookId; |
||||
$this->addressBookData = $addressBookData; |
||||
$this->shares = $shares; |
||||
$this->cardData = $cardData; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAddressBookId(): int { |
||||
return $this->addressBookId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getAddressBookData(): array { |
||||
return $this->addressBookData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getShares(): array { |
||||
return $this->shares; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getCardData(): array { |
||||
return $this->cardData; |
||||
} |
||||
} |
||||
@ -0,0 +1,72 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class SubscriptionCreatedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class SubscriptionCreatedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $subscriptionId; |
||||
|
||||
/** @var array */ |
||||
private $subscriptionData; |
||||
|
||||
/** |
||||
* SubscriptionCreatedEvent constructor. |
||||
* |
||||
* @param int $subscriptionId |
||||
* @param array $subscriptionData |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $subscriptionId, |
||||
array $subscriptionData) { |
||||
parent::__construct(); |
||||
$this->subscriptionId = $subscriptionId; |
||||
$this->subscriptionData = $subscriptionData; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getSubscriptionId(): int { |
||||
return $this->subscriptionId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getSubscriptionData(): array { |
||||
return $this->subscriptionData; |
||||
} |
||||
} |
||||
@ -0,0 +1,86 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class SubscriptionDeletedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class SubscriptionDeletedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $subscriptionId; |
||||
|
||||
/** @var array */ |
||||
private $subscriptionData; |
||||
|
||||
/** @var array */ |
||||
private $shares; |
||||
|
||||
/** |
||||
* SubscriptionDeletedEvent constructor. |
||||
* |
||||
* @param int $subscriptionId |
||||
* @param array $subscriptionData |
||||
* @param array $shares |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $subscriptionId, |
||||
array $subscriptionData, |
||||
array $shares) { |
||||
parent::__construct(); |
||||
$this->subscriptionId = $subscriptionId; |
||||
$this->subscriptionData = $subscriptionData; |
||||
$this->shares = $shares; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getSubscriptionId(): int { |
||||
return $this->subscriptionId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getSubscriptionData(): array { |
||||
return $this->subscriptionData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getShares(): array { |
||||
return $this->shares; |
||||
} |
||||
} |
||||
@ -0,0 +1,100 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2020, Georg Ehrke |
||||
* |
||||
* @author Georg Ehrke <oc.list@georgehrke.com> |
||||
* |
||||
* @license AGPL-3.0 |
||||
* |
||||
* This code is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License, version 3, |
||||
* as published by the Free Software Foundation. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License, version 3, |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/> |
||||
* |
||||
*/ |
||||
namespace OCA\DAV\Events; |
||||
|
||||
use OCP\EventDispatcher\Event; |
||||
|
||||
/** |
||||
* Class SubscriptionUpdatedEvent |
||||
* |
||||
* @package OCA\DAV\Events |
||||
* @since 20.0.0 |
||||
*/ |
||||
class SubscriptionUpdatedEvent extends Event { |
||||
|
||||
/** @var int */ |
||||
private $subscriptionId; |
||||
|
||||
/** @var array */ |
||||
private $subscriptionData; |
||||
|
||||
/** @var array */ |
||||
private $shares; |
||||
|
||||
/** @var array */ |
||||
private $mutations; |
||||
|
||||
/** |
||||
* SubscriptionUpdatedEvent constructor. |
||||
* |
||||
* @param int $subscriptionId |
||||
* @param array $subscriptionData |
||||
* @param array $shares |
||||
* @param array $mutations |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function __construct(int $subscriptionId, |
||||
array $subscriptionData, |
||||
array $shares, |
||||
array $mutations) { |
||||
parent::__construct(); |
||||
$this->subscriptionId = $subscriptionId; |
||||
$this->subscriptionData = $subscriptionData; |
||||
$this->shares = $shares; |
||||
$this->mutations = $mutations; |
||||
} |
||||
|
||||
/** |
||||
* @return int |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getSubscriptionId(): int { |
||||
return $this->subscriptionId; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getSubscriptionData(): array { |
||||
return $this->subscriptionData; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getShares(): array { |
||||
return $this->shares; |
||||
} |
||||
|
||||
/** |
||||
* @return array |
||||
* @since 20.0.0 |
||||
*/ |
||||
public function getMutations(): array { |
||||
return $this->mutations; |
||||
} |
||||
} |
||||
Loading…
Reference in new issue