Skip to content

Commit f2e0ada

Browse files
authored
Merge pull request #194 from xJuvi/new-features
fixes #110 fixes #184
2 parents 6515b1f + 5209c0f commit f2e0ada

File tree

4 files changed

+87
-1
lines changed

4 files changed

+87
-1
lines changed

src/Parameters/CreateMeetingParameters.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,6 +1552,7 @@ public function getHTTPQuery()
15521552
'meetingKeepEvents' => $this->meetingKeepEvents ? 'true' : 'false',
15531553
'meetingLayout' => $this->meetingLayout,
15541554
'meetingCameraCap' => $this->meetingCameraCap,
1555+
'userCameraCap' => $this->userCameraCap,
15551556
'meetingExpireIfNoUserJoinedInMinutes' => $this->meetingExpireIfNoUserJoinedInMinutes,
15561557
'meetingExpireWhenLastUserLeftInMinutes' => $this->meetingExpireWhenLastUserLeftInMinutes,
15571558
'preUploadedPresentationOverrideDefault' => $this->preUploadedPresentationOverrideDefault,

src/Parameters/JoinMeetingParameters.php

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,21 @@ class JoinMeetingParameters extends UserDataParameters
8888
* @var bool
8989
*/
9090
private $excludeFromDashboard;
91+
92+
/**
93+
* @var string
94+
*/
95+
private $configToken;
96+
97+
/**
98+
* @var bool
99+
*/
100+
private $guest;
101+
102+
/**
103+
* @var string
104+
*/
105+
private $defaultLayout;
91106

92107
/**
93108
* JoinMeetingParametersTest constructor.
@@ -328,6 +343,66 @@ public function setExcludeFromDashboard($excludeFromDashboard): JoinMeetingParam
328343

329344
return $this;
330345
}
346+
347+
/**
348+
* @return string
349+
*/
350+
public function getConfigToken()
351+
{
352+
return $this->configToken;
353+
}
354+
355+
/**
356+
* @param string $configToken
357+
*
358+
* @return JoinMeetingParameters
359+
*/
360+
public function setConfigToken($configToken)
361+
{
362+
$this->configToken = $configToken;
363+
364+
return $this;
365+
}
366+
367+
/**
368+
* @return bool
369+
*/
370+
public function isGuest()
371+
{
372+
return $this->guest;
373+
}
374+
375+
/**
376+
* @param bool $guest
377+
*
378+
* @return JoinMeetingParameters
379+
*/
380+
public function setGuest($guest)
381+
{
382+
$this->guest = $guest;
383+
384+
return $this;
385+
}
386+
387+
/**
388+
* @return string
389+
*/
390+
public function getDefaultLayout()
391+
{
392+
return $this->defaultLayout;
393+
}
394+
395+
/**
396+
* @param string $defaultLayout
397+
*
398+
* @return JoinMeetingParameters
399+
*/
400+
public function setDefaultLayout($defaultLayout)
401+
{
402+
$this->defaultLayout = $defaultLayout;
403+
404+
return $this;
405+
}
331406

332407
/**
333408
* @param string $paramName
@@ -359,6 +434,9 @@ public function getHTTPQuery()
359434
'avatarURL' => $this->avatarURL,
360435
'redirect' => $this->redirect ? 'true' : 'false',
361436
'clientURL' => $this->clientURL,
437+
'configToken' => $this->configToken,
438+
'guest' => $this->guest ? 'true' : 'false',
439+
'defaultLayout' => $this->defaultLayout,
362440
];
363441

364442
foreach ($this->customParameters as $key => $value) {

tests/Parameters/GetMeetingInfoParametersTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class GetMeetingInfoParametersTest extends TestCase
3131
{
3232
public function testGetMeetingInfoParameters()
3333
{
34-
$getMeetingInfoParams = new GetMeetingInfoParameters($meetingId = $this->faker->uuid, $password = $this->faker->password());
34+
$getMeetingInfoParams = new GetMeetingInfoParameters($meetingId = $this->faker->uuid);
3535

3636
$this->assertEquals($meetingId, $getMeetingInfoParams->getMeetingId());
3737

tests/Parameters/JoinMeetingParametersTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
namespace BigBlueButton\Parameters;
2222

2323
use BigBlueButton\Enum\Role;
24+
use BigBlueButton\Enum\MeetingLayout;
2425
use BigBlueButton\TestCase;
2526

2627
/**
@@ -55,6 +56,9 @@ public function testJoinMeetingParameters()
5556
$joinMeetingParams->setAvatarURL($avatarUrl = $this->faker->url);
5657
$joinMeetingParams->setRedirect($redirect = $this->faker->boolean(50));
5758
$joinMeetingParams->setClientURL($clientUrl = $this->faker->url);
59+
$joinMeetingParams->setConfigToken($configToken = $this->faker->word);
60+
$joinMeetingParams->setGuest($guest = $this->faker->boolean(50));
61+
$joinMeetingParams->setDefaultLayout($defaultLayout = $this->faker->randomElement(MeetingLayout::getValues()));
5862
$this->assertEquals($newId, $joinMeetingParams->getMeetingId());
5963
$this->assertEquals($newName, $joinMeetingParams->getUsername());
6064
$this->assertEquals($newRole, $joinMeetingParams->getRole());
@@ -63,5 +67,8 @@ public function testJoinMeetingParameters()
6367
$this->assertEquals($avatarUrl, $joinMeetingParams->getAvatarURL());
6468
$this->assertEquals($redirect, $joinMeetingParams->isRedirect());
6569
$this->assertEquals($clientUrl, $joinMeetingParams->getClientURL());
70+
$this->assertEquals($configToken, $joinMeetingParams->getConfigToken());
71+
$this->assertEquals($guest, $joinMeetingParams->isGuest());
72+
$this->assertEquals($defaultLayout, $joinMeetingParams->getDefaultLayout);
6673
}
6774
}

0 commit comments

Comments
 (0)