summaryrefslogtreecommitdiffstats
path: root/lib/Room.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Room.php')
-rw-r--r--lib/Room.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Room.php b/lib/Room.php
index d52fd2200..035072261 100644
--- a/lib/Room.php
+++ b/lib/Room.php
@@ -180,6 +180,8 @@ class Room {
private $description;
/** @var string */
private $password;
+ /** @var string */
+ private $serverUrl;
/** @var int */
private $activeGuests;
/** @var int */
@@ -218,6 +220,7 @@ class Room {
string $name,
string $description,
string $password,
+ string $serverUrl,
int $activeGuests,
int $callFlag,
?\DateTime $activeSince,
@@ -243,6 +246,7 @@ class Room {
$this->name = $name;
$this->description = $description;
$this->password = $password;
+ $this->serverUrl = $serverUrl;
$this->activeGuests = $activeGuests;
$this->callFlag = $callFlag;
$this->activeSince = $activeSince;
@@ -377,6 +381,14 @@ class Room {
return $this->password;
}
+ public function getServerUrl(): string {
+ return $this->serverUrl;
+ }
+
+ public function isFederatedRemoteRoom(): bool {
+ return $this->serverUrl !== '';
+ }
+
public function setParticipant(?string $userId, Participant $participant): void {
$this->currentUser = $userId;
$this->participant = $participant;