diff options
author | Joas Schilling <coding@schilljs.com> | 2017-07-08 12:12:41 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-07-17 12:05:51 +0300 |
commit | 9d6d4f87e52f9102b6ccf38d98d816cfa58176ee (patch) | |
tree | 3be5915e90d19d08ea8f660dc09a2511dda9d3ab /lib/Participant.php | |
parent | 8a3dd6757cdef125205af35b225745eb0f32303f (diff) |
Restrict renaming, inviting and public/private to owner and moderators
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Participant.php')
-rw-r--r-- | lib/Participant.php | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/lib/Participant.php b/lib/Participant.php index 375c76b5f..7c92ffd90 100644 --- a/lib/Participant.php +++ b/lib/Participant.php @@ -23,9 +23,57 @@ namespace OCA\Spreed; +use OCP\IDBConnection; + class Participant { const OWNER = 1; const MODERATOR = 2; const USER = 3; const GUEST = 4; + + /** @var IDBConnection */ + protected $db; + /** @var Room */ + protected $room; + /** @var string */ + protected $user; + /** @var int */ + protected $participantType; + /** @var int */ + protected $lastPing; + /** @var string */ + protected $sessionId; + + /** + * @param IDBConnection $db + * @param Room $room + * @param string $user + * @param int $participantType + * @param int $lastPing + * @param string $sessionId + */ + public function __construct(IDBConnection $db, Room $room, $user, $participantType, $lastPing, $sessionId) { + $this->db = $db; + $this->room = $room; + $this->user = $user; + $this->participantType = $participantType; + $this->lastPing = $lastPing; + $this->sessionId = $sessionId; + } + + public function getUser() { + return $this->user; + } + + public function getParticipantType() { + return $this->participantType; + } + + public function getLastPing() { + return $this->lastPing; + } + + public function getSessionId() { + return $this->sessionId; + } } |