TaskSystem/vendor/alibabacloud/live-20161101/src/Models/UpdateCasterSceneAudioRequest.php
2023-10-17 10:24:59 +08:00

123 lines
2.9 KiB
PHP

<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Live\V20161101\Models;
use AlibabaCloud\SDK\Live\V20161101\Models\UpdateCasterSceneAudioRequest\audioLayer;
use AlibabaCloud\Tea\Model;
class UpdateCasterSceneAudioRequest extends Model
{
/**
* @var audioLayer[]
*/
public $audioLayer;
/**
* @var string
*/
public $casterId;
/**
* @var int
*/
public $followEnable;
/**
* @var string[]
*/
public $mixList;
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $sceneId;
protected $_name = [
'audioLayer' => 'AudioLayer',
'casterId' => 'CasterId',
'followEnable' => 'FollowEnable',
'mixList' => 'MixList',
'ownerId' => 'OwnerId',
'sceneId' => 'SceneId',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->audioLayer) {
$res['AudioLayer'] = [];
if (null !== $this->audioLayer && \is_array($this->audioLayer)) {
$n = 0;
foreach ($this->audioLayer as $item) {
$res['AudioLayer'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->casterId) {
$res['CasterId'] = $this->casterId;
}
if (null !== $this->followEnable) {
$res['FollowEnable'] = $this->followEnable;
}
if (null !== $this->mixList) {
$res['MixList'] = $this->mixList;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->sceneId) {
$res['SceneId'] = $this->sceneId;
}
return $res;
}
/**
* @param array $map
*
* @return UpdateCasterSceneAudioRequest
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AudioLayer'])) {
if (!empty($map['AudioLayer'])) {
$model->audioLayer = [];
$n = 0;
foreach ($map['AudioLayer'] as $item) {
$model->audioLayer[$n++] = null !== $item ? audioLayer::fromMap($item) : $item;
}
}
}
if (isset($map['CasterId'])) {
$model->casterId = $map['CasterId'];
}
if (isset($map['FollowEnable'])) {
$model->followEnable = $map['FollowEnable'];
}
if (isset($map['MixList'])) {
if (!empty($map['MixList'])) {
$model->mixList = $map['MixList'];
}
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['SceneId'])) {
$model->sceneId = $map['SceneId'];
}
return $model;
}
}