You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
945 B
43 lines
945 B
<?php
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
namespace Chamilo\PluginBundle\Zoom;
|
|
|
|
use Exception;
|
|
|
|
class CourseMeetingInfoGet extends API\MeetingInfoGet
|
|
{
|
|
use CourseMeetingTrait;
|
|
use DisplayableMeetingTrait;
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function fromJson($json)
|
|
{
|
|
$instance = parent::fromJson($json);
|
|
$instance->decodeAndRemoveTag();
|
|
$instance->initializeDisplayableProperties();
|
|
|
|
return $instance;
|
|
}
|
|
|
|
/**
|
|
* CourseMeetingListItem constructor.
|
|
*
|
|
* @param API\MeetingInfoGet $meeting
|
|
*
|
|
* @throws Exception
|
|
*
|
|
* @return static
|
|
*/
|
|
public static function fromMeetingInfoGet($meeting)
|
|
{
|
|
$instance = new static();
|
|
self::recursivelyCopyObjectProperties($meeting, $instance);
|
|
$instance->decodeAndRemoveTag();
|
|
$instance->initializeDisplayableProperties();
|
|
|
|
return $instance;
|
|
}
|
|
}
|
|
|