Skip to content

Commit e6bf205

Browse files
authored
Update JoinMeetingParameters.php
1 parent 48aa353 commit e6bf205

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/Parameters/JoinMeetingParameters.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ class JoinMeetingParameters extends UserDataParameters
7878
*/
7979
private $joinViaHtml5;
8080

81+
/**
82+
* @var array
83+
*/
84+
private $customParameters;
85+
8186
/**
8287
* JoinMeetingParametersTest constructor.
8388
*
@@ -90,6 +95,7 @@ public function __construct($meetingId, $username, $password)
9095
$this->meetingId = $meetingId;
9196
$this->username = $username;
9297
$this->password = $password;
98+
$this->customParameters = array();
9399
}
94100

95101
/**
@@ -307,6 +313,18 @@ public function setJoinViaHtml5($joinViaHtml5)
307313
return $this;
308314
}
309315

316+
/**
317+
* @param string $paramName
318+
* @param string $paramValue
319+
* @return JoinMeetingParameters
320+
*/
321+
public function setCustomParameter($paramName, $paramValue)
322+
{
323+
$this->customParameters[$paramName] = $paramValue;
324+
325+
return $this;
326+
}
327+
310328
/**
311329
* @return string
312330
*/
@@ -325,6 +343,11 @@ public function getHTTPQuery()
325343
'joinViaHtml5' => $this->joinViaHtml5 ? 'true' : 'false',
326344
'clientURL' => $this->clientURL
327345
];
346+
347+
foreach( $this->customParameters as $key => $value ) {
348+
$queries[$key] = $value;
349+
}
350+
328351
$this->buildUserData($queries);
329352

330353
return $this->buildHTTPQuery($queries);

0 commit comments

Comments
 (0)