Class: TencentCloud::Iotvideoindustry::V20201201::ModifyBindSceneChannelsRequest

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

Overview

ModifyBindSceneChannels请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sceneid = nil, type = nil, channels = nil) ⇒ ModifyBindSceneChannelsRequest

Returns a new instance of ModifyBindSceneChannelsRequest.



5100
5101
5102
5103
5104
# File 'lib/v20201201/models.rb', line 5100

def initialize(sceneid=nil, type=nil, channels=nil)
  @SceneId = sceneid
  @Type = type
  @Channels = channels
end

Instance Attribute Details

#ChannelsObject

Parameters:

  • SceneId:

    场景ID

  • Type:

    1: 绑定 2: 解绑

  • Channels:

    通道列表



5098
5099
5100
# File 'lib/v20201201/models.rb', line 5098

def Channels
  @Channels
end

#SceneIdObject

Parameters:

  • SceneId:

    场景ID

  • Type:

    1: 绑定 2: 解绑

  • Channels:

    通道列表



5098
5099
5100
# File 'lib/v20201201/models.rb', line 5098

def SceneId
  @SceneId
end

#TypeObject

Parameters:

  • SceneId:

    场景ID

  • Type:

    1: 绑定 2: 解绑

  • Channels:

    通道列表



5098
5099
5100
# File 'lib/v20201201/models.rb', line 5098

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
# File 'lib/v20201201/models.rb', line 5106

def deserialize(params)
  @SceneId = params['SceneId']
  @Type = params['Type']
  unless params['Channels'].nil?
    @Channels = []
    params['Channels'].each do |i|
      channelitem_tmp = ChannelItem.new
      channelitem_tmp.deserialize(i)
      @Channels << channelitem_tmp
    end
  end
end