Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439 Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
51 lines
1.1 KiB
PHP
51 lines
1.1 KiB
PHP
<?php
|
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
namespace Chamilo\PluginBundle\Zoom\API;
|
|
|
|
use Exception;
|
|
|
|
/**
|
|
* Class MeetingInstance
|
|
* A meeting (numerical id) can have one or more instances (string UUID).
|
|
* Each instance has its own start time, participants and recording files.
|
|
*
|
|
* @see MeetingInstances
|
|
* @see PastMeeting for the full record
|
|
*/
|
|
class MeetingInstance
|
|
{
|
|
/** @var string */
|
|
public $uuid;
|
|
|
|
/** @var string */
|
|
public $start_time;
|
|
|
|
/**
|
|
* Retrieves the recording of the instance.
|
|
*
|
|
* @throws Exception with code 404 when there is no recording for this meeting
|
|
*
|
|
* @return RecordingMeeting the recording
|
|
*/
|
|
public function getRecordings()
|
|
{
|
|
return RecordingMeeting::fromJson(
|
|
Client::getInstance()->send('GET', 'meetings/'.htmlentities($this->uuid).'/recordings')
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Retrieves the instance's participants.
|
|
*
|
|
* @throws Exception
|
|
*
|
|
* @return ParticipantListItem[]
|
|
*/
|
|
public function getParticipants()
|
|
{
|
|
return ParticipantList::loadInstanceParticipants($this->uuid);
|
|
}
|
|
}
|