mirror of
https://github.com/nextcloud/mail.git
synced 2025-08-20 16:08:52 +00:00
65 lines
1.1 KiB
PHP
65 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OCA\Mail\Events;
|
|
|
|
use OCA\Mail\Account;
|
|
use OCA\Mail\Db\Mailbox;
|
|
use OCP\EventDispatcher\Event;
|
|
|
|
class MessageFlaggedEvent extends Event {
|
|
/** @var Account */
|
|
private $account;
|
|
|
|
/** @var Mailbox */
|
|
private $mailbox;
|
|
|
|
/** @var int */
|
|
private $uid;
|
|
|
|
/** @var string */
|
|
private $flag;
|
|
|
|
/** @var bool */
|
|
private $set;
|
|
|
|
public function __construct(Account $account,
|
|
Mailbox $mailbox,
|
|
int $uid,
|
|
string $flag,
|
|
bool $set) {
|
|
parent::__construct();
|
|
$this->account = $account;
|
|
$this->mailbox = $mailbox;
|
|
$this->uid = $uid;
|
|
$this->flag = $flag;
|
|
$this->set = $set;
|
|
}
|
|
|
|
public function getAccount(): Account {
|
|
return $this->account;
|
|
}
|
|
|
|
public function getMailbox(): Mailbox {
|
|
return $this->mailbox;
|
|
}
|
|
|
|
public function getUid(): int {
|
|
return $this->uid;
|
|
}
|
|
|
|
public function getFlag(): string {
|
|
return $this->flag;
|
|
}
|
|
|
|
public function isSet(): bool {
|
|
return $this->set;
|
|
}
|
|
}
|