diff options
Diffstat (limited to 'apps/dav/lib/Db/Absence.php')
-rw-r--r-- | apps/dav/lib/Db/Absence.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/dav/lib/Db/Absence.php b/apps/dav/lib/Db/Absence.php index 6b6d608ffd8..c58593e3e3f 100644 --- a/apps/dav/lib/Db/Absence.php +++ b/apps/dav/lib/Db/Absence.php @@ -29,6 +29,10 @@ use OCP\User\IOutOfOfficeData; * @method void setStatus(string $status) * @method string getMessage() * @method void setMessage(string $message) + * @method string getReplacementUserId() + * @method void setReplacementUserId(string $replacementUserId) + * @method string getReplacementUserDisplayName() + * @method void setReplacementUserDisplayName(string $replacementUserDisplayName) */ class Absence extends Entity implements JsonSerializable { protected string $userId = ''; @@ -43,12 +47,18 @@ class Absence extends Entity implements JsonSerializable { protected string $message = ''; + protected string $replacementUserId = ''; + + protected string $replacementUserDisplayName = ''; + public function __construct() { $this->addType('userId', 'string'); $this->addType('firstDay', 'string'); $this->addType('lastDay', 'string'); $this->addType('status', 'string'); $this->addType('message', 'string'); + $this->addType('replacementUserId', 'string'); + $this->addType('replacementUserDisplayName', 'string'); } public function toOutOufOfficeData(IUser $user, string $timezone): IOutOfOfficeData { @@ -70,6 +80,8 @@ class Absence extends Entity implements JsonSerializable { $endDate->getTimestamp(), $this->getStatus(), $this->getMessage(), + $this->getReplacementUserId(), + $this->getReplacementUserDisplayName(), ); } @@ -80,6 +92,8 @@ class Absence extends Entity implements JsonSerializable { 'lastDay' => $this->lastDay, 'status' => $this->status, 'message' => $this->message, + 'replacementUserId' => $this->replacementUserId, + 'replacementUserDisplayName' => $this->replacementUserDisplayName, ]; } } |