Class: TencentCloud::Iotvideoindustry::V20201201::ControlChannelPTZRequest

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

Overview

ControlChannelPTZ请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(deviceid = nil, channelid = nil, command = nil) ⇒ ControlChannelPTZRequest

Returns a new instance of ControlChannelPTZRequest.



310
311
312
313
314
# File 'lib/v20201201/models.rb', line 310

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

Instance Attribute Details

#ChannelIdObject

stop - 停止当前PTZ信令left - 向左移动right - 向右移动up - 向上移动down - 向下移动leftUp - 左上移动leftDown - 左下移动rightUp - 右上移动rightDown - 右下移动zoomOut - 镜头缩小zoomIn - 镜头放大irisIn - 光圈缩小irisOut - 光圈放大focusIn - 焦距变近focusOut - 焦距变远

Parameters:

  • DeviceId:

    设备唯一标识

  • ChannelId:

    通道唯一标识

  • Command:

    PTZ控制命令类型:



308
309
310
# File 'lib/v20201201/models.rb', line 308

def ChannelId
  @ChannelId
end

#CommandObject

stop - 停止当前PTZ信令left - 向左移动right - 向右移动up - 向上移动down - 向下移动leftUp - 左上移动leftDown - 左下移动rightUp - 右上移动rightDown - 右下移动zoomOut - 镜头缩小zoomIn - 镜头放大irisIn - 光圈缩小irisOut - 光圈放大focusIn - 焦距变近focusOut - 焦距变远

Parameters:

  • DeviceId:

    设备唯一标识

  • ChannelId:

    通道唯一标识

  • Command:

    PTZ控制命令类型:



308
309
310
# File 'lib/v20201201/models.rb', line 308

def Command
  @Command
end

#DeviceIdObject

stop - 停止当前PTZ信令left - 向左移动right - 向右移动up - 向上移动down - 向下移动leftUp - 左上移动leftDown - 左下移动rightUp - 右上移动rightDown - 右下移动zoomOut - 镜头缩小zoomIn - 镜头放大irisIn - 光圈缩小irisOut - 光圈放大focusIn - 焦距变近focusOut - 焦距变远

Parameters:

  • DeviceId:

    设备唯一标识

  • ChannelId:

    通道唯一标识

  • Command:

    PTZ控制命令类型:



308
309
310
# File 'lib/v20201201/models.rb', line 308

def DeviceId
  @DeviceId
end

Instance Method Details

#deserialize(params) ⇒ Object



316
317
318
319
320
# File 'lib/v20201201/models.rb', line 316

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