summaryrefslogtreecommitdiffstats
path: root/lib/Model/Invitation.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Model/Invitation.php')
-rw-r--r--lib/Model/Invitation.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Model/Invitation.php b/lib/Model/Invitation.php
index cf2a591e0..8ba075615 100644
--- a/lib/Model/Invitation.php
+++ b/lib/Model/Invitation.php
@@ -38,6 +38,8 @@ use OCP\AppFramework\Db\Entity;
* @method string getUserId()
* @method void setAccessToken(string $accessToken)
* @method string getAccessToken()
+ * @method void setRemoteId(string $remoteId)
+ * @method string getRemoteId()
*/
class Invitation extends Entity {
/** @var int */
@@ -49,10 +51,14 @@ class Invitation extends Entity {
/** @var string */
protected $accessToken;
+ /** @var string */
+ protected $remoteId;
+
public function __construct() {
$this->addType('roomId', 'int');
$this->addType('userId', 'string');
$this->addType('accessToken', 'string');
+ $this->addType('remoteId', 'string');
}
public function asArray(): array {
@@ -61,6 +67,7 @@ class Invitation extends Entity {
'room_id' => $this->getRoomId(),
'user_id' => $this->getUserId(),
'access_token' => $this->getAccessToken(),
+ 'remote_id' => $this->getRemoteId(),
];
}
}