From e6bf20597dcdd83140be4c4a0b66cd7f22420267 Mon Sep 17 00:00:00 2001 From: Tiago D J Date: Wed, 19 Aug 2020 14:26:25 -0300 Subject: [PATCH] Update JoinMeetingParameters.php --- src/Parameters/JoinMeetingParameters.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/Parameters/JoinMeetingParameters.php b/src/Parameters/JoinMeetingParameters.php index 41c227a8..9fe43b36 100644 --- a/src/Parameters/JoinMeetingParameters.php +++ b/src/Parameters/JoinMeetingParameters.php @@ -78,6 +78,11 @@ class JoinMeetingParameters extends UserDataParameters */ private $joinViaHtml5; + /** + * @var array + */ + private $customParameters; + /** * JoinMeetingParametersTest constructor. * @@ -90,6 +95,7 @@ public function __construct($meetingId, $username, $password) $this->meetingId = $meetingId; $this->username = $username; $this->password = $password; + $this->customParameters = array(); } /** @@ -307,6 +313,18 @@ public function setJoinViaHtml5($joinViaHtml5) return $this; } + /** + * @param string $paramName + * @param string $paramValue + * @return JoinMeetingParameters + */ + public function setCustomParameter($paramName, $paramValue) + { + $this->customParameters[$paramName] = $paramValue; + + return $this; + } + /** * @return string */ @@ -325,6 +343,11 @@ public function getHTTPQuery() 'joinViaHtml5' => $this->joinViaHtml5 ? 'true' : 'false', 'clientURL' => $this->clientURL ]; + + foreach( $this->customParameters as $key => $value ) { + $queries[$key] = $value; + } + $this->buildUserData($queries); return $this->buildHTTPQuery($queries);