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

52 lines
1.0 KiB
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Talk\Events;
use OCA\Talk\Room;
use OCP\Comments\IComment;
abstract class AReactionEvent extends ARoomEvent {
public function __construct(
Room $room,
protected IComment $message,
protected string $actorType,
protected string $actorId,
protected string $actorDisplayName,
protected string $reaction,
protected ?IComment $reactionMessage = null,
) {
parent::__construct($room);
}
public function getMessage(): IComment {
return $this->message;
}
public function getReactionMessage(): ?IComment {
return $this->reactionMessage;
}
public function getActorType(): string {
return $this->actorType;
}
public function getActorId(): string {
return $this->actorId;
}
public function getActorDisplayName(): string {
return $this->actorDisplayName;
}
public function getReaction(): string {
return $this->reaction;
}
}