Class: TencentCloud::Iss::V20230517::ControlDevicePTZRequest

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

Overview

ControlDevicePTZ请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channelid = nil, type = nil, speed = nil) ⇒ ControlDevicePTZRequest

Returns a new instance of ControlDevicePTZRequest.



1590
1591
1592
1593
1594
# File 'lib/v20230517/models.rb', line 1590

def initialize(channelid=nil, type=nil, speed=nil)
  @ChannelId = channelid
  @Type = type
  @Speed = speed
end

Instance Attribute Details

#ChannelIdObject

上左:leftup,上右:rightup,下左:leftdown,下右:rightdown 放大:zoomin,缩小:zoomout 聚焦远:focusfar,聚焦近:focusnear 光圈放大:irisin,光圈缩小:irisout)

Parameters:

  • ChannelId:

    通道 ID(从通道查询接口DescribeDeviceChannel中获取)

  • Type:

    命令类型(上:up,下:down,左:left,右:right

  • Speed:

    命令描述(速度值范围1-8)



1588
1589
1590
# File 'lib/v20230517/models.rb', line 1588

def ChannelId
  @ChannelId
end

#SpeedObject

上左:leftup,上右:rightup,下左:leftdown,下右:rightdown 放大:zoomin,缩小:zoomout 聚焦远:focusfar,聚焦近:focusnear 光圈放大:irisin,光圈缩小:irisout)

Parameters:

  • ChannelId:

    通道 ID(从通道查询接口DescribeDeviceChannel中获取)

  • Type:

    命令类型(上:up,下:down,左:left,右:right

  • Speed:

    命令描述(速度值范围1-8)



1588
1589
1590
# File 'lib/v20230517/models.rb', line 1588

def Speed
  @Speed
end

#TypeObject

上左:leftup,上右:rightup,下左:leftdown,下右:rightdown 放大:zoomin,缩小:zoomout 聚焦远:focusfar,聚焦近:focusnear 光圈放大:irisin,光圈缩小:irisout)

Parameters:

  • ChannelId:

    通道 ID(从通道查询接口DescribeDeviceChannel中获取)

  • Type:

    命令类型(上:up,下:down,左:left,右:right

  • Speed:

    命令描述(速度值范围1-8)



1588
1589
1590
# File 'lib/v20230517/models.rb', line 1588

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



1596
1597
1598
1599
1600
# File 'lib/v20230517/models.rb', line 1596

def deserialize(params)
  @ChannelId = params['ChannelId']
  @Type = params['Type']
  @Speed = params['Speed']
end