f7cloud_client/apps/spreed/lib/Events/RoomPasswordVerifyEvent.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

45 lines
898 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2023 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Talk\Events;
use OCA\Talk\Room;
class RoomPasswordVerifyEvent extends ARoomEvent {
protected ?bool $isPasswordValid = null;
protected string $redirectUrl = '';
public function __construct(
Room $room,
protected string $password,
) {
parent::__construct($room);
}
public function getPassword(): string {
return $this->password;
}
public function setIsPasswordValid(bool $isPasswordValid): void {
$this->isPasswordValid = $isPasswordValid;
}
public function isPasswordValid(): ?bool {
return $this->isPasswordValid;
}
public function setRedirectUrl(string $redirectUrl): void {
$this->redirectUrl = $redirectUrl;
}
public function getRedirectUrl(): string {
return $this->redirectUrl;
}
}