File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ class JoinMeetingParameters extends UserDataParameters
6161
6262 private ?MeetingLayout $ defaultLayout = null ;
6363
64+ private ?string $ errorRedirectUrl = null ;
65+ private ?string $ webcamBackgroundURL = null ;
66+
6467 public function __construct (string $ meetingId , string $ username , Role |string $ passwordOrRole )
6568 {
6669 $ this ->meetingId = $ meetingId ;
@@ -235,6 +238,32 @@ public function setDefaultLayout(MeetingLayout $defaultLayout): self
235238 return $ this ;
236239 }
237240
241+ #[ApiParameterMapper(attributeName: 'errorRedirectUrl ' )]
242+ public function getErrorRedirectUrl (): ?string
243+ {
244+ return $ this ->errorRedirectUrl ;
245+ }
246+
247+ public function setErrorRedirectUrl (string $ errorRedirectUrl ): self
248+ {
249+ $ this ->errorRedirectUrl = $ errorRedirectUrl ;
250+
251+ return $ this ;
252+ }
253+
254+ #[ApiParameterMapper(attributeName: 'webcamBackgroundURL ' )]
255+ public function getWebcamBackgroundURL (): ?string
256+ {
257+ return $ this ->webcamBackgroundURL ;
258+ }
259+
260+ public function setWebcamBackgroundURL (string $ webcamBackgroundURL ): self
261+ {
262+ $ this ->webcamBackgroundURL = $ webcamBackgroundURL ;
263+
264+ return $ this ;
265+ }
266+
238267 public function setCustomParameter (string $ paramName , string $ paramValue ): self
239268 {
240269 $ this ->customParameters [$ paramName ] = $ paramValue ;
Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ public function testJoinMeetingParameters(): void
5555 $ joinMeetingParams ->setRedirect ($ redirect = $ this ->faker ->boolean (50 ));
5656 $ joinMeetingParams ->setGuest ($ guest = $ this ->faker ->boolean (50 ));
5757 $ joinMeetingParams ->setDefaultLayout ($ defaultLayout = $ this ->faker ->randomElement (MeetingLayout::cases ()));
58+ $ joinMeetingParams ->setErrorRedirectUrl ($ errorRedirectUrl = $ this ->faker ->url ());
59+ $ joinMeetingParams ->setWebcamBackgroundURL ($ webcamBackgroundUrl = $ this ->faker ->url ());
5860 $ this ->assertEquals ($ newId , $ joinMeetingParams ->getMeetingId ());
5961 $ this ->assertEquals ($ newName , $ joinMeetingParams ->getUsername ());
6062 $ this ->assertEquals ($ newRole , $ joinMeetingParams ->getRole ());
@@ -64,5 +66,7 @@ public function testJoinMeetingParameters(): void
6466 $ this ->assertEquals ($ redirect , $ joinMeetingParams ->isRedirect ());
6567 $ this ->assertEquals ($ guest , $ joinMeetingParams ->isGuest ());
6668 $ this ->assertEquals ($ defaultLayout , $ joinMeetingParams ->getDefaultLayout ());
69+ $ this ->assertEquals ($ errorRedirectUrl , $ joinMeetingParams ->getErrorRedirectUrl ());
70+ $ this ->assertEquals ($ webcamBackgroundUrl , $ joinMeetingParams ->getWebcamBackgroundURL ());
6771 }
6872}
You can’t perform that action at this time.
0 commit comments