73 lines
1.5 KiB
PHP
73 lines
1.5 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\AddPlaylistItemsResponseBody\items;
|
|
use AlibabaCloud\Tea\Model;
|
|
|
|
class AddPlaylistItemsResponseBody extends Model
|
|
{
|
|
/**
|
|
* @var items
|
|
*/
|
|
public $items;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $programId;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $requestId;
|
|
protected $_name = [
|
|
'items' => 'Items',
|
|
'programId' => 'ProgramId',
|
|
'requestId' => 'RequestId',
|
|
];
|
|
|
|
public function validate()
|
|
{
|
|
}
|
|
|
|
public function toMap()
|
|
{
|
|
$res = [];
|
|
if (null !== $this->items) {
|
|
$res['Items'] = null !== $this->items ? $this->items->toMap() : null;
|
|
}
|
|
if (null !== $this->programId) {
|
|
$res['ProgramId'] = $this->programId;
|
|
}
|
|
if (null !== $this->requestId) {
|
|
$res['RequestId'] = $this->requestId;
|
|
}
|
|
|
|
return $res;
|
|
}
|
|
|
|
/**
|
|
* @param array $map
|
|
*
|
|
* @return AddPlaylistItemsResponseBody
|
|
*/
|
|
public static function fromMap($map = [])
|
|
{
|
|
$model = new self();
|
|
if (isset($map['Items'])) {
|
|
$model->items = items::fromMap($map['Items']);
|
|
}
|
|
if (isset($map['ProgramId'])) {
|
|
$model->programId = $map['ProgramId'];
|
|
}
|
|
if (isset($map['RequestId'])) {
|
|
$model->requestId = $map['RequestId'];
|
|
}
|
|
|
|
return $model;
|
|
}
|
|
}
|