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.



5270
5271
5272
5273
5274
# File 'lib/v20201201/models.rb', line 5270

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:

    通道列表



5268
5269
5270
# File 'lib/v20201201/models.rb', line 5268

def Channels
  @Channels
end

#SceneIdObject

Parameters:

  • SceneId:

    场景ID

  • Type:

    1: 绑定 2: 解绑

  • Channels:

    通道列表



5268
5269
5270
# File 'lib/v20201201/models.rb', line 5268

def SceneId
  @SceneId
end

#TypeObject

Parameters:

  • SceneId:

    场景ID

  • Type:

    1: 绑定 2: 解绑

  • Channels:

    通道列表



5268
5269
5270
# File 'lib/v20201201/models.rb', line 5268

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
# File 'lib/v20201201/models.rb', line 5276

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