Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-10-26 17:10:58 +0300
committerIvan Sein <ivan@struktur.de>2017-11-03 15:04:52 +0300
commiteae71a3977068b578c590982c3b9ebacf9f23074 (patch)
tree3afa99773cd4cf27234d7da25a13c11072afb66b /lib/Participant.php
parentd83c3d250eb249f3308b7fc7925272ddf756e8ef (diff)
Split joining a room and joining a call API wise
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Participant.php')
-rw-r--r--lib/Participant.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Participant.php b/lib/Participant.php
index 5b994d148..27a2f32a6 100644
--- a/lib/Participant.php
+++ b/lib/Participant.php
@@ -44,6 +44,8 @@ class Participant {
protected $lastPing;
/** @var string */
protected $sessionId;
+ /** @var bool */
+ protected $inCall;
/**
* @param IDBConnection $db
@@ -52,14 +54,16 @@ class Participant {
* @param int $participantType
* @param int $lastPing
* @param string $sessionId
+ * @param bool $inCall
*/
- public function __construct(IDBConnection $db, Room $room, $user, $participantType, $lastPing, $sessionId) {
+ public function __construct(IDBConnection $db, Room $room, $user, $participantType, $lastPing, $sessionId, $inCall) {
$this->db = $db;
$this->room = $room;
$this->user = $user;
$this->participantType = $participantType;
$this->lastPing = $lastPing;
$this->sessionId = $sessionId;
+ $this->inCall = $inCall;
}
public function getUser() {
@@ -77,4 +81,8 @@ class Participant {
public function getSessionId() {
return $this->sessionId;
}
+
+ public function isInCall() {
+ return $this->inCall;
+ }
}