From edfdd95bb76476e95ecc9c8fecbd80594b10afb8 Mon Sep 17 00:00:00 2001 From: Samuel Weirich <4281791+SamuelWei@users.noreply.github.com> Date: Sat, 28 Sep 2024 00:06:09 +0200 Subject: [PATCH] Add webcamBackgroundURL (#214) Co-authored-by: Felix Jacobi --- src/Parameters/JoinMeetingParameters.php | 3 +++ tests/unit/Parameters/JoinMeetingParametersTest.php | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/Parameters/JoinMeetingParameters.php b/src/Parameters/JoinMeetingParameters.php index e17c6167..f55ee924 100644 --- a/src/Parameters/JoinMeetingParameters.php +++ b/src/Parameters/JoinMeetingParameters.php @@ -51,6 +51,8 @@ * @method $this setRole(Role $role) * @method bool|null isExcludeFromDashboard() * @method $this setExcludeFromDashboard(bool $excludeFromDashboard) + * @method string getWebcamBackgroundURL() + * @method $this setWebcamBackgroundURL(string $webcamBackgroundURL) */ class JoinMeetingParameters extends UserDataParameters { @@ -63,6 +65,7 @@ class JoinMeetingParameters extends UserDataParameters protected ?string $errorRedirectUrl = null; protected ?bool $guest = null; protected ?bool $excludeFromDashboard = null; + protected ?string $webcamBackgroundURL = null; public function __construct(protected string $meetingID, protected string $fullName, protected Role $role) { diff --git a/tests/unit/Parameters/JoinMeetingParametersTest.php b/tests/unit/Parameters/JoinMeetingParametersTest.php index c7bd6ab7..9c7b900a 100644 --- a/tests/unit/Parameters/JoinMeetingParametersTest.php +++ b/tests/unit/Parameters/JoinMeetingParametersTest.php @@ -52,6 +52,7 @@ public function testJoinMeetingParameters(): void $joinMeetingParams->setRedirect($redirect = $this->faker->boolean(50)); $joinMeetingParams->setErrorRedirectUrl($newErrorRedirectUrl = $this->faker->url); $joinMeetingParams->setGuest($guest = $this->faker->boolean(50)); + $joinMeetingParams->setWebcamBackgroundURL($webcamBackgroundURL = $this->faker->url); $this->assertEquals($newId, $joinMeetingParams->getMeetingID()); $this->assertEquals($newName, $joinMeetingParams->getFullName()); $this->assertEquals($newRole, $joinMeetingParams->getRole()); @@ -59,5 +60,6 @@ public function testJoinMeetingParameters(): void $this->assertEquals($redirect, $joinMeetingParams->isRedirect()); $this->assertEquals($newErrorRedirectUrl, $joinMeetingParams->getErrorRedirectUrl()); $this->assertEquals($guest, $joinMeetingParams->isGuest()); + $this->assertEquals($webcamBackgroundURL, $joinMeetingParams->getWebcamBackgroundURL()); } }