summaryrefslogtreecommitdiffstats
path: root/lib/Model/Attendee.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Model/Attendee.php')
-rw-r--r--lib/Model/Attendee.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/Model/Attendee.php b/lib/Model/Attendee.php
index 6f7b083a5..e0de04da1 100644
--- a/lib/Model/Attendee.php
+++ b/lib/Model/Attendee.php
@@ -27,7 +27,7 @@ use OCP\AppFramework\Db\Entity;
/**
* @method void setRoomId(int $roomId)
- * @method string getRoomId()
+ * @method int getRoomId()
* @method void setActorType(string $actorType)
* @method string getActorType()
* @method void setActorId(string $actorId)
@@ -51,6 +51,10 @@ use OCP\AppFramework\Db\Entity;
* @method int getReadPrivacy()
* @method void setPublishingPermissions(int $publishingPermissions)
* @method int getPublishingPermissions()
+ * @method void setAccessToken(string $accessToken)
+ * @method null|string getAccessToken()
+ * @method void setRemoteId(string $remoteId)
+ * @method string getRemoteId()
*/
class Attendee extends Entity {
public const ACTOR_USERS = 'users';
@@ -59,6 +63,7 @@ class Attendee extends Entity {
public const ACTOR_EMAILS = 'emails';
public const ACTOR_CIRCLES = 'circles';
public const ACTOR_BRIDGED = 'bridged';
+ public const ACTOR_FEDERATED_USERS = 'federated_users';
public const PUBLISHING_PERMISSIONS_NONE = 0;
public const PUBLISHING_PERMISSIONS_AUDIO = 1;
@@ -105,6 +110,12 @@ class Attendee extends Entity {
/** @var int */
protected $publishingPermissions;
+ /** @var string */
+ protected $accessToken;
+
+ /** @var string */
+ protected $remoteId;
+
public function __construct() {
$this->addType('roomId', 'int');
$this->addType('actorType', 'string');
@@ -119,6 +130,8 @@ class Attendee extends Entity {
$this->addType('lastMentionMessage', 'int');
$this->addType('readPrivacy', 'int');
$this->addType('publishingPermissions', 'int');
+ $this->addType('accessToken', 'string');
+ $this->addType('remote_id', 'string');
}
public function getDisplayName(): string {
@@ -144,6 +157,8 @@ class Attendee extends Entity {
'last_mention_message' => $this->getLastMentionMessage(),
'read_privacy' => $this->getReadPrivacy(),
'publishing_permissions' => $this->getPublishingPermissions(),
+ 'access_token' => $this->getAccessToken(),
+ 'remote_id' => $this->getRemoteId(),
];
}
}