Commit 99caf67f authored by Ghazi Triki's avatar Ghazi Triki
Browse files

Added guestStatus and url to JoinMeetingResponse.

parent aaa8fd10
......@@ -55,4 +55,20 @@ class JoinMeetingResponse extends BaseResponse
{
return $this->rawXml->session_token->__toString();
}
/**
* @return string
*/
public function getGuestStatus()
{
return $this->rawXml->guestStatus->__toString();
}
/**
* @return string
*/
public function getUrl()
{
return $this->rawXml->url->__toString();
}
}
......@@ -185,6 +185,8 @@ class BigBlueButtonTest extends TestCase
$this->assertNotEmpty($joinMeeting->getAuthToken());
$this->assertNotEmpty($joinMeeting->getUserId());
$this->assertNotEmpty($joinMeeting->getSessionToken());
$this->assertNotEmpty($joinMeeting->getGuestStatus());
$this->assertNotEmpty($joinMeeting->getUrl());
}
/* Get Default Config XML */
......
......@@ -46,10 +46,12 @@ class JoinMeetingResponseTest extends TestCase
$this->assertEquals('ao6ehbtvbmhz', $this->joinMeeting->getUserId());
$this->assertEquals('huzbpgthac7s', $this->joinMeeting->getAuthToken());
$this->assertEquals('rbe7bbkjzx5mnoda', $this->joinMeeting->getSessionToken());
$this->assertEquals('ALLOW', $this->joinMeeting->getGuestStatus());
$this->assertEquals('https://bigblubutton-server.sample/client/BigBlueButton.html?sessionToken=0wzsph6uaelwc68z', $this->joinMeeting->getUrl());
}
public function testJoinMeetingResponseTypes()
{
$this->assertEachGetterValueIsString($this->joinMeeting, ['getReturnCode', 'getMessageKey', 'getMessage', 'getMeetingId', 'getUserId', 'getAuthToken', 'getSessionToken']);
$this->assertEachGetterValueIsString($this->joinMeeting, ['getReturnCode', 'getMessageKey', 'getMessage', 'getMeetingId', 'getUserId', 'getAuthToken', 'getSessionToken', 'getGuestStatus', 'getUrl']);
}
}
......@@ -6,4 +6,6 @@
<user_id>ao6ehbtvbmhz</user_id>
<auth_token>huzbpgthac7s</auth_token>
<session_token>rbe7bbkjzx5mnoda</session_token>
</response>
\ No newline at end of file
<guestStatus>ALLOW</guestStatus>
<url>https://bigblubutton-server.sample/client/BigBlueButton.html?sessionToken=0wzsph6uaelwc68z</url>
</response>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment