Class: TencentCloud::Iotvideoindustry::V20201201::ControlPresetRequest

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

Overview

ControlPreset请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channelid = nil, command = nil, presetid = nil, deviceid = nil) ⇒ ControlPresetRequest

Returns a new instance of ControlPresetRequest.



458
459
460
461
462
463
# File 'lib/v20201201/models.rb', line 458

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

Instance Attribute Details

#ChannelIdObject

Set-设置当前位置为预置位Del-删除指定的预置位Call-调用指定的预置位

Parameters:

  • ChannelId:

    通道ID

  • Command:

    控制命令:

  • PresetId:

    预置位编码 范围1-8

  • DeviceId:

    设备Id



456
457
458
# File 'lib/v20201201/models.rb', line 456

def ChannelId
  @ChannelId
end

#CommandObject

Set-设置当前位置为预置位Del-删除指定的预置位Call-调用指定的预置位

Parameters:

  • ChannelId:

    通道ID

  • Command:

    控制命令:

  • PresetId:

    预置位编码 范围1-8

  • DeviceId:

    设备Id



456
457
458
# File 'lib/v20201201/models.rb', line 456

def Command
  @Command
end

#DeviceIdObject

Set-设置当前位置为预置位Del-删除指定的预置位Call-调用指定的预置位

Parameters:

  • ChannelId:

    通道ID

  • Command:

    控制命令:

  • PresetId:

    预置位编码 范围1-8

  • DeviceId:

    设备Id



456
457
458
# File 'lib/v20201201/models.rb', line 456

def DeviceId
  @DeviceId
end

#PresetIdObject

Set-设置当前位置为预置位Del-删除指定的预置位Call-调用指定的预置位

Parameters:

  • ChannelId:

    通道ID

  • Command:

    控制命令:

  • PresetId:

    预置位编码 范围1-8

  • DeviceId:

    设备Id



456
457
458
# File 'lib/v20201201/models.rb', line 456

def PresetId
  @PresetId
end

Instance Method Details

#deserialize(params) ⇒ Object



465
466
467
468
469
470
# File 'lib/v20201201/models.rb', line 465

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