96 lines
1.9 KiB
PHP
96 lines
1.9 KiB
PHP
<?php
|
|
|
|
// This file is auto-generated, don't edit it. Thanks.
|
|
|
|
namespace AlibabaCloud\SDK\Live\V20161101\Models;
|
|
|
|
use AlibabaCloud\Tea\Model;
|
|
|
|
class ForbidPushStreamRequest extends Model
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $appId;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $endTime;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $ownerId;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $roomId;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $userData;
|
|
protected $_name = [
|
|
'appId' => 'AppId',
|
|
'endTime' => 'EndTime',
|
|
'ownerId' => 'OwnerId',
|
|
'roomId' => 'RoomId',
|
|
'userData' => 'UserData',
|
|
];
|
|
|
|
public function validate()
|
|
{
|
|
}
|
|
|
|
public function toMap()
|
|
{
|
|
$res = [];
|
|
if (null !== $this->appId) {
|
|
$res['AppId'] = $this->appId;
|
|
}
|
|
if (null !== $this->endTime) {
|
|
$res['EndTime'] = $this->endTime;
|
|
}
|
|
if (null !== $this->ownerId) {
|
|
$res['OwnerId'] = $this->ownerId;
|
|
}
|
|
if (null !== $this->roomId) {
|
|
$res['RoomId'] = $this->roomId;
|
|
}
|
|
if (null !== $this->userData) {
|
|
$res['UserData'] = $this->userData;
|
|
}
|
|
|
|
return $res;
|
|
}
|
|
|
|
/**
|
|
* @param array $map
|
|
*
|
|
* @return ForbidPushStreamRequest
|
|
*/
|
|
public static function fromMap($map = [])
|
|
{
|
|
$model = new self();
|
|
if (isset($map['AppId'])) {
|
|
$model->appId = $map['AppId'];
|
|
}
|
|
if (isset($map['EndTime'])) {
|
|
$model->endTime = $map['EndTime'];
|
|
}
|
|
if (isset($map['OwnerId'])) {
|
|
$model->ownerId = $map['OwnerId'];
|
|
}
|
|
if (isset($map['RoomId'])) {
|
|
$model->roomId = $map['RoomId'];
|
|
}
|
|
if (isset($map['UserData'])) {
|
|
$model->userData = $map['UserData'];
|
|
}
|
|
|
|
return $model;
|
|
}
|
|
}
|