2023-10-17 10:24:59 +08:00

72 lines
1.5 KiB
PHP

<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Live\V20161101\Models\AddCasterLayoutRequest;
use AlibabaCloud\Tea\Model;
class audioLayer extends Model
{
/**
* @var int
*/
public $fixedDelayDuration;
/**
* @var string
*/
public $validChannel;
/**
* @var float
*/
public $volumeRate;
protected $_name = [
'fixedDelayDuration' => 'FixedDelayDuration',
'validChannel' => 'ValidChannel',
'volumeRate' => 'VolumeRate',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->fixedDelayDuration) {
$res['FixedDelayDuration'] = $this->fixedDelayDuration;
}
if (null !== $this->validChannel) {
$res['ValidChannel'] = $this->validChannel;
}
if (null !== $this->volumeRate) {
$res['VolumeRate'] = $this->volumeRate;
}
return $res;
}
/**
* @param array $map
*
* @return audioLayer
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['FixedDelayDuration'])) {
$model->fixedDelayDuration = $map['FixedDelayDuration'];
}
if (isset($map['ValidChannel'])) {
$model->validChannel = $map['ValidChannel'];
}
if (isset($map['VolumeRate'])) {
$model->volumeRate = $map['VolumeRate'];
}
return $model;
}
}