Class: TencentCloud::Vod::V20180717::MediaSnapshotByTimeOffsetItem

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

Overview

点播文件指定时间点截图信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition = nil, picinfoset = nil) ⇒ MediaSnapshotByTimeOffsetItem

Returns a new instance of MediaSnapshotByTimeOffsetItem.



18251
18252
18253
18254
# File 'lib/v20180717/models.rb', line 18251

def initialize(definition=nil, picinfoset=nil)
  @Definition = definition
  @PicInfoSet = picinfoset
end

Instance Attribute Details

#DefinitionObject

Parameters:



18249
18250
18251
# File 'lib/v20180717/models.rb', line 18249

def Definition
  @Definition
end

#PicInfoSetObject

Parameters:



18249
18250
18251
# File 'lib/v20180717/models.rb', line 18249

def PicInfoSet
  @PicInfoSet
end

Instance Method Details

#deserialize(params) ⇒ Object



18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
# File 'lib/v20180717/models.rb', line 18256

def deserialize(params)
  @Definition = params['Definition']
  unless params['PicInfoSet'].nil?
    @PicInfoSet = []
    params['PicInfoSet'].each do |i|
      mediasnapshotbytimepicinfoitem_tmp = MediaSnapshotByTimePicInfoItem.new
      mediasnapshotbytimepicinfoitem_tmp.deserialize(i)
      @PicInfoSet << mediasnapshotbytimepicinfoitem_tmp
    end
  end
end