Class: TencentCloud::Iotvideoindustry::V20201201::ControlChannelLocalRecordRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201201/models.rb

Overview

ControlChannelLocalRecord请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(deviceid = nil, channelid = nil, streamid = nil, command = nil) ⇒ ControlChannelLocalRecordRequest

Returns a new instance of ControlChannelLocalRecordRequest.



253
254
255
256
257
258
# File 'lib/v20201201/models.rb', line 253

def initialize(deviceid=nil, channelid=nil, streamid=nil, command=nil)
  @DeviceId = deviceid
  @ChannelId = channelid
  @StreamId = streamid
  @Command = command
end

Instance Attribute Details

#ChannelIdObject

目前支持的command:“Command”: “”Action“:”PAUSE“” 暂停“Command”: “”Action“:”PLAY“” 暂停恢复“Command”: “”Action“:”PLAY“,”Offset“:”15“” 基于文件起始时间点的位置偏移,单位秒



251
252
253
# File 'lib/v20201201/models.rb', line 251

def ChannelId
  @ChannelId
end

#CommandObject

目前支持的command:“Command”: “”Action“:”PAUSE“” 暂停“Command”: “”Action“:”PLAY“” 暂停恢复“Command”: “”Action“:”PLAY“,”Offset“:”15“” 基于文件起始时间点的位置偏移,单位秒



251
252
253
# File 'lib/v20201201/models.rb', line 251

def Command
  @Command
end

#DeviceIdObject

目前支持的command:“Command”: “”Action“:”PAUSE“” 暂停“Command”: “”Action“:”PLAY“” 暂停恢复“Command”: “”Action“:”PLAY“,”Offset“:”15“” 基于文件起始时间点的位置偏移,单位秒



251
252
253
# File 'lib/v20201201/models.rb', line 251

def DeviceId
  @DeviceId
end

#StreamIdObject

目前支持的command:“Command”: “”Action“:”PAUSE“” 暂停“Command”: “”Action“:”PLAY“” 暂停恢复“Command”: “”Action“:”PLAY“,”Offset“:”15“” 基于文件起始时间点的位置偏移,单位秒



251
252
253
# File 'lib/v20201201/models.rb', line 251

def StreamId
  @StreamId
end

Instance Method Details

#deserialize(params) ⇒ Object



260
261
262
263
264
265
# File 'lib/v20201201/models.rb', line 260

def deserialize(params)
  @DeviceId = params['DeviceId']
  @ChannelId = params['ChannelId']
  @StreamId = params['StreamId']
  @Command = params['Command']
end