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.



484
485
486
487
488
489
# File 'lib/v20201201/models.rb', line 484

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



482
483
484
# File 'lib/v20201201/models.rb', line 482

def ChannelId
  @ChannelId
end

#CommandObject

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

Parameters:

  • ChannelId:

    通道ID

  • Command:

    控制命令:

  • PresetId:

    预置位编码 范围1-8

  • DeviceId:

    设备Id



482
483
484
# File 'lib/v20201201/models.rb', line 482

def Command
  @Command
end

#DeviceIdObject

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

Parameters:

  • ChannelId:

    通道ID

  • Command:

    控制命令:

  • PresetId:

    预置位编码 范围1-8

  • DeviceId:

    设备Id



482
483
484
# File 'lib/v20201201/models.rb', line 482

def DeviceId
  @DeviceId
end

#PresetIdObject

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

Parameters:

  • ChannelId:

    通道ID

  • Command:

    控制命令:

  • PresetId:

    预置位编码 范围1-8

  • DeviceId:

    设备Id



482
483
484
# File 'lib/v20201201/models.rb', line 482

def PresetId
  @PresetId
end

Instance Method Details

#deserialize(params) ⇒ Object



491
492
493
494
495
496
# File 'lib/v20201201/models.rb', line 491

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