refactor: rename room ended event

pull/77/head
sualko 2020-09-22 13:32:25 +02:00
parent 6902b50795
commit f74ba3794b
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ use OCA\BigBlueButton\Db\Room;
use OCP\IRequest; use OCP\IRequest;
use OCP\EventDispatcher\IEventDispatcher; use OCP\EventDispatcher\IEventDispatcher;
use OCA\BigBlueButton\Service\RoomService; use OCA\BigBlueButton\Service\RoomService;
use OCA\BigBlueButton\Event\RoomEndedEvent; use OCA\BigBlueButton\Event\MeetingEndedEvent;
use OCA\BigBlueButton\Event\RecordingReadyEvent; use OCA\BigBlueButton\Event\RecordingReadyEvent;
use OCP\AppFramework\Controller; use OCP\AppFramework\Controller;
@ -53,7 +53,7 @@ class HookController extends Controller {
public function meetingEnded($recordingmarks = false) { public function meetingEnded($recordingmarks = false) {
$recordingmarks = \boolval($recordingmarks); $recordingmarks = \boolval($recordingmarks);
$this->eventDispatcher->dispatch(RoomEndedEvent::class, new RoomEndedEvent($this->getRoom(), $recordingmarks)); $this->eventDispatcher->dispatch(MeetingEndedEvent::class, new MeetingEndedEvent($this->getRoom(), $recordingmarks));
} }
/** /**

View File

@ -4,7 +4,7 @@ namespace OCA\BigBlueButton\Event;
use OCA\BigBlueButton\Db\Room; use OCA\BigBlueButton\Db\Room;
abstract class RoomEndedEvent extends RoomEvent { abstract class MeetingEndedEvent extends RoomEvent {
private $recordingMarks = false; private $recordingMarks = false;
public function __construct(Room $room, bool $recordingMarks) { public function __construct(Room $room, bool $recordingMarks) {