diff --git a/lib/private/Talk/ConversationOptions.php b/lib/private/Talk/ConversationOptions.php index a71f9822d5251..556649dce494a 100644 --- a/lib/private/Talk/ConversationOptions.php +++ b/lib/private/Talk/ConversationOptions.php @@ -14,6 +14,8 @@ class ConversationOptions implements IConversationOptions { private function __construct( private bool $isPublic, + private ?\DateTimeInterface $meetingStartDate = null, + private ?\DateTimeInterface $meetingEndDate = null, ) { } @@ -29,4 +31,18 @@ public function setPublic(bool $isPublic = true): IConversationOptions { public function isPublic(): bool { return $this->isPublic; } + + public function setMeeting(\DateTimeInterface $meetingStartDate, \DateTimeInterface $meetingEndDate): IConversationOptions { + $this->meetingStartDate = $meetingStartDate; + $this->meetingEndDate = $meetingEndDate; + return $this; + } + + public function getMeetingStartDate(): ?\DateTimeInterface { + return $this->meetingStartDate; + } + + public function getMeetingEndDate(): ?\DateTimeInterface { + return $this->meetingEndDate; + } } diff --git a/lib/public/Talk/IConversationOptions.php b/lib/public/Talk/IConversationOptions.php index 9433bad989354..75e0f31b4353b 100644 --- a/lib/public/Talk/IConversationOptions.php +++ b/lib/public/Talk/IConversationOptions.php @@ -30,4 +30,30 @@ public function isPublic(): bool; * @since 24.0.0 */ public function setPublic(bool $isPublic = true): self; + + /** + * Time of the meeting if the conversation is tight to a single meeting event + * + * @param \DateTimeInterface $meetingStartDate + * @param \DateTimeInterface $meetingEndDate + * @return $this + * @since 32.0.9 + */ + public function setMeeting(\DateTimeInterface $meetingStartDate, \DateTimeInterface $meetingEndDate): self; + + /** + * Start time of the meeting + * + * @return ?\DateTimeInterface + * @since 32.0.9 + */ + public function getMeetingStartDate(): ?\DateTimeInterface; + + /** + * End time of the meeting + * + * @return ?\DateTimeInterface + * @since 32.0.9 + */ + public function getMeetingEndDate(): ?\DateTimeInterface; }