/home/techb158/ileadtechnology.com/vendor/bigbluebutton/bigbluebutton-api-php/src/Core
Edit: /home/techb158/ileadtechnology.com/vendor/bigbluebutton/bigbluebutton-api-php/src/Core/Attendee.php (3419B)
.
*/
namespace BigBlueButton\Core;
class Attendee
{
/**
* @var string
*/
private $userId;
/**
* @var string
*/
private $fullName;
/**
* @var string
*/
private $role;
/**
* @var bool
*/
private $isPresenter;
/**
* @var bool
*/
private $isListeningOnly;
/**
* @var bool
*/
private $hasJoinedVoice;
/**
* @var bool
*/
private $hasVideo;
/**
* @var array
*/
private $customData = [];
/**
* @var string
*/
private $clientType;
/**
* Attendee constructor.
*
* @param $xml \SimpleXMLElement
*/
public function __construct($xml)
{
$this->userId = $xml->userID->__toString();
$this->fullName = $xml->fullName->__toString();
$this->role = $xml->role->__toString();
$this->isPresenter = 'true' === $xml->isPresenter->__toString();
$this->isListeningOnly = 'true' === $xml->isListeningOnly->__toString();
$this->hasJoinedVoice = 'true' === $xml->hasJoinedVoice->__toString();
$this->hasVideo = 'true' === $xml->hasVideo->__toString();
$this->clientType = $xml->clientType->__toString();
if ($xml->customdata) {
foreach ($xml->customdata->children() as $data) {
$this->customData[$data->getName()] = $data->__toString();
}
}
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
/**
* @return string
*/
public function getFullName()
{
return $this->fullName;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* @return null|bool
*/
public function isPresenter()
{
return $this->isPresenter;
}
/**
* @return null|bool
*/
public function isListeningOnly()
{
return $this->isListeningOnly;
}
/**
* @return null|bool
*/
public function hasJoinedVoice()
{
return $this->hasJoinedVoice;
}
/**
* @return null|bool
*/
public function hasVideo()
{
return $this->hasVideo;
}
/**
* @return string
*/
public function getClientType()
{
return $this->clientType;
}
/**
* @return array
*/
public function getCustomData()
{
return $this->customData;
}
}