Skip to content
Merged
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
31 changes: 31 additions & 0 deletions src/Parameters/CreateMeetingParameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ class CreateMeetingParameters extends MetaParameters

private ?int $meetingExpireWhenLastUserLeftInMinutes = null;

private ?string $preUploadedPresentation = null;

private ?string $preUploadedPresentationName = null;

private ?bool $preUploadedPresentationOverrideDefault = null;

/**
Expand Down Expand Up @@ -1218,6 +1222,31 @@ public function isPreUploadedPresentationOverrideDefault(): ?bool
return $this->preUploadedPresentationOverrideDefault;
}

/**
* If passed with a valid presentation file url, this presentation will override the default presentation.
* To only upload but not set as default, also pass preUploadedPresentationOverrideDefault=false
*
* @since 2.7.2
*/
public function setPreUploadedPresentation(string $preUploadedPresentation): self
{
$this->preUploadedPresentation = $preUploadedPresentation;

return $this;
}

/**
* If passed it will use this string as the name of the presentation uploaded via preUploadedPresentation
*
* @since 2.7.2
*/
public function setPreUploadedPresentationName(string $preUploadedPresentationName): self
{
$this->preUploadedPresentationName = $preUploadedPresentationName;

return $this;
}

/**
* If it is true, the default.pdf document is not sent along with the other presentations in the /create
* endpoint, on the other hand, if that's false, the default.pdf is sent with the other documents.
Expand Down Expand Up @@ -1449,6 +1478,8 @@ public function getHTTPQuery(): string
'userCameraCap' => $this->userCameraCap,
'meetingExpireIfNoUserJoinedInMinutes' => $this->meetingExpireIfNoUserJoinedInMinutes,
'meetingExpireWhenLastUserLeftInMinutes' => $this->meetingExpireWhenLastUserLeftInMinutes,
'preUploadedPresentation' => $this->preUploadedPresentation,
'preUploadedPresentationName' => $this->preUploadedPresentationName,
'preUploadedPresentationOverrideDefault' => $this->preUploadedPresentationOverrideDefault,
'disabledFeatures' => join(',', $this->disabledFeatures),
'disabledFeaturesExclude' => join(',', $this->disabledFeaturesExclude),
Expand Down