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.



336
337
338
339
340
# File 'lib/v20201201/models.rb', line 336

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控制命令类型:



334
335
336
# File 'lib/v20201201/models.rb', line 334

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控制命令类型:



334
335
336
# File 'lib/v20201201/models.rb', line 334

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控制命令类型:



334
335
336
# File 'lib/v20201201/models.rb', line 334

def DeviceId
  @DeviceId
end

Instance Method Details

#deserialize(params) ⇒ Object



342
343
344
345
346
# File 'lib/v20201201/models.rb', line 342

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