mirror of https://github.com/sualko/cloud_bbb
refactor: rename room ended event
parent
6902b50795
commit
f74ba3794b
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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) {
|
Loading…
Reference in New Issue