aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/User
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/User')
-rw-r--r--lib/private/User/AvailabilityCoordinator.php4
-rw-r--r--lib/private/User/OutOfOfficeData.php14
2 files changed, 17 insertions, 1 deletions
diff --git a/lib/private/User/AvailabilityCoordinator.php b/lib/private/User/AvailabilityCoordinator.php
index 5017a85c28b..988f2e55260 100644
--- a/lib/private/User/AvailabilityCoordinator.php
+++ b/lib/private/User/AvailabilityCoordinator.php
@@ -61,6 +61,8 @@ class AvailabilityCoordinator implements IAvailabilityCoordinator {
$cachedData['endDate'],
$cachedData['shortMessage'],
$cachedData['message'],
+ $cachedData['replacementUserId'],
+ $cachedData['replacementUserDisplayName'],
);
}
@@ -72,6 +74,8 @@ class AvailabilityCoordinator implements IAvailabilityCoordinator {
'endDate' => $data->getEndDate(),
'shortMessage' => $data->getShortMessage(),
'message' => $data->getMessage(),
+ 'replacementUserId' => $data->getReplacementUserId(),
+ 'replacementUserDisplayName' => $data->getReplacementUserDisplayName(),
], JSON_THROW_ON_ERROR);
} catch (JsonException $e) {
$this->logger->error('Failed to serialize out-of-office data: ' . $e->getMessage(), [
diff --git a/lib/private/User/OutOfOfficeData.php b/lib/private/User/OutOfOfficeData.php
index 65d7c9c24cb..2d90dbfd39c 100644
--- a/lib/private/User/OutOfOfficeData.php
+++ b/lib/private/User/OutOfOfficeData.php
@@ -18,7 +18,9 @@ class OutOfOfficeData implements IOutOfOfficeData {
private int $startDate,
private int $endDate,
private string $shortMessage,
- private string $message) {
+ private string $message,
+ private string $replacementUserId,
+ private string $replacementUserDisplayName) {
}
public function getId(): string {
@@ -45,6 +47,14 @@ class OutOfOfficeData implements IOutOfOfficeData {
return $this->message;
}
+ public function getReplacementUserId(): string {
+ return $this->replacementUserId;
+ }
+
+ public function getReplacementUserDisplayName(): string {
+ return $this->replacementUserDisplayName;
+ }
+
public function jsonSerialize(): array {
return [
'id' => $this->getId(),
@@ -53,6 +63,8 @@ class OutOfOfficeData implements IOutOfOfficeData {
'endDate' => $this->getEndDate(),
'shortMessage' => $this->getShortMessage(),
'message' => $this->getMessage(),
+ 'replacementUserId' => $this->getReplacementUserId(),
+ 'replacementUserDisplayName' => $this->getReplacementUserDisplayName(),
];
}
}