Class: TencentCloud::Cme::V20191029::VideoEditTemplateMaterial

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

Overview

视频编辑模板素材信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aspectratio = nil, slotset = nil, previewvideourl = nil) ⇒ VideoEditTemplateMaterial

Returns a new instance of VideoEditTemplateMaterial.



6291
6292
6293
6294
6295
# File 'lib/v20191029/models.rb', line 6291

def initialize(aspectratio=nil, slotset=nil, previewvideourl=nil)
  @AspectRatio = aspectratio
  @SlotSet = slotset
  @PreviewVideoUrl = previewvideourl
end

Instance Attribute Details

#AspectRatioObject

Parameters:

  • AspectRatio:

    视频编辑模板宽高比。

  • SlotSet:

    卡槽信息。

  • PreviewVideoUrl:

    模板预览视频 URL 地址 。



6289
6290
6291
# File 'lib/v20191029/models.rb', line 6289

def AspectRatio
  @AspectRatio
end

#PreviewVideoUrlObject

Parameters:

  • AspectRatio:

    视频编辑模板宽高比。

  • SlotSet:

    卡槽信息。

  • PreviewVideoUrl:

    模板预览视频 URL 地址 。



6289
6290
6291
# File 'lib/v20191029/models.rb', line 6289

def PreviewVideoUrl
  @PreviewVideoUrl
end

#SlotSetObject

Parameters:

  • AspectRatio:

    视频编辑模板宽高比。

  • SlotSet:

    卡槽信息。

  • PreviewVideoUrl:

    模板预览视频 URL 地址 。



6289
6290
6291
# File 'lib/v20191029/models.rb', line 6289

def SlotSet
  @SlotSet
end

Instance Method Details

#deserialize(params) ⇒ Object



6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
# File 'lib/v20191029/models.rb', line 6297

def deserialize(params)
  @AspectRatio = params['AspectRatio']
  unless params['SlotSet'].nil?
    @SlotSet = []
    params['SlotSet'].each do |i|
      slotinfo_tmp = SlotInfo.new
      slotinfo_tmp.deserialize(i)
      @SlotSet << slotinfo_tmp
    end
  end
  @PreviewVideoUrl = params['PreviewVideoUrl']
end