Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions lib/private/Talk/ConversationOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
class ConversationOptions implements IConversationOptions {
private function __construct(
private bool $isPublic,
private ?\DateTimeInterface $meetingStartDate = null,
private ?\DateTimeInterface $meetingEndDate = null,
) {
}

Expand All @@ -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;
}
}
26 changes: 26 additions & 0 deletions lib/public/Talk/IConversationOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Loading