168 lines
4.0 KiB
PHP
168 lines
4.0 KiB
PHP
<?php
|
|
|
|
// This file is auto-generated, don't edit it. Thanks.
|
|
|
|
namespace AlibabaCloud\SDK\Live\V20161101\Models;
|
|
|
|
use AlibabaCloud\Tea\Model;
|
|
|
|
class ModifyCasterVideoResourceRequest extends Model
|
|
{
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $beginOffset;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $casterId;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $endOffset;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $liveStreamUrl;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $materialId;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $ownerId;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $ptsCallbackInterval;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $repeatNum;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $resourceId;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $resourceName;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $vodUrl;
|
|
protected $_name = [
|
|
'beginOffset' => 'BeginOffset',
|
|
'casterId' => 'CasterId',
|
|
'endOffset' => 'EndOffset',
|
|
'liveStreamUrl' => 'LiveStreamUrl',
|
|
'materialId' => 'MaterialId',
|
|
'ownerId' => 'OwnerId',
|
|
'ptsCallbackInterval' => 'PtsCallbackInterval',
|
|
'repeatNum' => 'RepeatNum',
|
|
'resourceId' => 'ResourceId',
|
|
'resourceName' => 'ResourceName',
|
|
'vodUrl' => 'VodUrl',
|
|
];
|
|
|
|
public function validate()
|
|
{
|
|
}
|
|
|
|
public function toMap()
|
|
{
|
|
$res = [];
|
|
if (null !== $this->beginOffset) {
|
|
$res['BeginOffset'] = $this->beginOffset;
|
|
}
|
|
if (null !== $this->casterId) {
|
|
$res['CasterId'] = $this->casterId;
|
|
}
|
|
if (null !== $this->endOffset) {
|
|
$res['EndOffset'] = $this->endOffset;
|
|
}
|
|
if (null !== $this->liveStreamUrl) {
|
|
$res['LiveStreamUrl'] = $this->liveStreamUrl;
|
|
}
|
|
if (null !== $this->materialId) {
|
|
$res['MaterialId'] = $this->materialId;
|
|
}
|
|
if (null !== $this->ownerId) {
|
|
$res['OwnerId'] = $this->ownerId;
|
|
}
|
|
if (null !== $this->ptsCallbackInterval) {
|
|
$res['PtsCallbackInterval'] = $this->ptsCallbackInterval;
|
|
}
|
|
if (null !== $this->repeatNum) {
|
|
$res['RepeatNum'] = $this->repeatNum;
|
|
}
|
|
if (null !== $this->resourceId) {
|
|
$res['ResourceId'] = $this->resourceId;
|
|
}
|
|
if (null !== $this->resourceName) {
|
|
$res['ResourceName'] = $this->resourceName;
|
|
}
|
|
if (null !== $this->vodUrl) {
|
|
$res['VodUrl'] = $this->vodUrl;
|
|
}
|
|
|
|
return $res;
|
|
}
|
|
|
|
/**
|
|
* @param array $map
|
|
*
|
|
* @return ModifyCasterVideoResourceRequest
|
|
*/
|
|
public static function fromMap($map = [])
|
|
{
|
|
$model = new self();
|
|
if (isset($map['BeginOffset'])) {
|
|
$model->beginOffset = $map['BeginOffset'];
|
|
}
|
|
if (isset($map['CasterId'])) {
|
|
$model->casterId = $map['CasterId'];
|
|
}
|
|
if (isset($map['EndOffset'])) {
|
|
$model->endOffset = $map['EndOffset'];
|
|
}
|
|
if (isset($map['LiveStreamUrl'])) {
|
|
$model->liveStreamUrl = $map['LiveStreamUrl'];
|
|
}
|
|
if (isset($map['MaterialId'])) {
|
|
$model->materialId = $map['MaterialId'];
|
|
}
|
|
if (isset($map['OwnerId'])) {
|
|
$model->ownerId = $map['OwnerId'];
|
|
}
|
|
if (isset($map['PtsCallbackInterval'])) {
|
|
$model->ptsCallbackInterval = $map['PtsCallbackInterval'];
|
|
}
|
|
if (isset($map['RepeatNum'])) {
|
|
$model->repeatNum = $map['RepeatNum'];
|
|
}
|
|
if (isset($map['ResourceId'])) {
|
|
$model->resourceId = $map['ResourceId'];
|
|
}
|
|
if (isset($map['ResourceName'])) {
|
|
$model->resourceName = $map['ResourceName'];
|
|
}
|
|
if (isset($map['VodUrl'])) {
|
|
$model->vodUrl = $map['VodUrl'];
|
|
}
|
|
|
|
return $model;
|
|
}
|
|
}
|