Class: TencentCloud::Mps::V20190612::MediaImageSpriteItem

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

Overview

雪碧图信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition = nil, height = nil, width = nil, totalcount = nil, imagepathset = nil, webvttpath = nil, storage = nil) ⇒ MediaImageSpriteItem

Returns a new instance of MediaImageSpriteItem.



20207
20208
20209
20210
20211
20212
20213
20214
20215
# File 'lib/v20190612/models.rb', line 20207

def initialize(definition=nil, height=nil, width=nil, totalcount=nil, imagepathset=nil, webvttpath=nil, storage=nil)
  @Definition = definition
  @Height = height
  @Width = width
  @TotalCount = totalcount
  @ImagePathSet = imagepathset
  @WebVttPath = webvttpath
  @Storage = storage
end

Instance Attribute Details

#DefinitionObject

Parameters:

  • Definition:
  • Height:

    雪碧图小图的高度。

  • Width:

    雪碧图小图的宽度。

  • TotalCount:

    每一张雪碧图大图里小图的数量。

  • ImagePathSet:

    每一张雪碧图大图的路径。

  • WebVttPath:

    雪碧图子图位置与时间关系的 WebVtt 文件路径。WebVtt 文件表明了各个雪碧图小图对应的时间点,以及在雪碧大图里的坐标位置,一般被播放器用于实现预览。

  • Storage:

    雪碧图文件的存储位置。



20205
20206
20207
# File 'lib/v20190612/models.rb', line 20205

def Definition
  @Definition
end

#HeightObject

Parameters:

  • Definition:
  • Height:

    雪碧图小图的高度。

  • Width:

    雪碧图小图的宽度。

  • TotalCount:

    每一张雪碧图大图里小图的数量。

  • ImagePathSet:

    每一张雪碧图大图的路径。

  • WebVttPath:

    雪碧图子图位置与时间关系的 WebVtt 文件路径。WebVtt 文件表明了各个雪碧图小图对应的时间点,以及在雪碧大图里的坐标位置,一般被播放器用于实现预览。

  • Storage:

    雪碧图文件的存储位置。



20205
20206
20207
# File 'lib/v20190612/models.rb', line 20205

def Height
  @Height
end

#ImagePathSetObject

Parameters:

  • Definition:
  • Height:

    雪碧图小图的高度。

  • Width:

    雪碧图小图的宽度。

  • TotalCount:

    每一张雪碧图大图里小图的数量。

  • ImagePathSet:

    每一张雪碧图大图的路径。

  • WebVttPath:

    雪碧图子图位置与时间关系的 WebVtt 文件路径。WebVtt 文件表明了各个雪碧图小图对应的时间点,以及在雪碧大图里的坐标位置,一般被播放器用于实现预览。

  • Storage:

    雪碧图文件的存储位置。



20205
20206
20207
# File 'lib/v20190612/models.rb', line 20205

def ImagePathSet
  @ImagePathSet
end

#StorageObject

Parameters:

  • Definition:
  • Height:

    雪碧图小图的高度。

  • Width:

    雪碧图小图的宽度。

  • TotalCount:

    每一张雪碧图大图里小图的数量。

  • ImagePathSet:

    每一张雪碧图大图的路径。

  • WebVttPath:

    雪碧图子图位置与时间关系的 WebVtt 文件路径。WebVtt 文件表明了各个雪碧图小图对应的时间点,以及在雪碧大图里的坐标位置,一般被播放器用于实现预览。

  • Storage:

    雪碧图文件的存储位置。



20205
20206
20207
# File 'lib/v20190612/models.rb', line 20205

def Storage
  @Storage
end

#TotalCountObject

Parameters:

  • Definition:
  • Height:

    雪碧图小图的高度。

  • Width:

    雪碧图小图的宽度。

  • TotalCount:

    每一张雪碧图大图里小图的数量。

  • ImagePathSet:

    每一张雪碧图大图的路径。

  • WebVttPath:

    雪碧图子图位置与时间关系的 WebVtt 文件路径。WebVtt 文件表明了各个雪碧图小图对应的时间点,以及在雪碧大图里的坐标位置,一般被播放器用于实现预览。

  • Storage:

    雪碧图文件的存储位置。



20205
20206
20207
# File 'lib/v20190612/models.rb', line 20205

def TotalCount
  @TotalCount
end

#WebVttPathObject

Parameters:

  • Definition:
  • Height:

    雪碧图小图的高度。

  • Width:

    雪碧图小图的宽度。

  • TotalCount:

    每一张雪碧图大图里小图的数量。

  • ImagePathSet:

    每一张雪碧图大图的路径。

  • WebVttPath:

    雪碧图子图位置与时间关系的 WebVtt 文件路径。WebVtt 文件表明了各个雪碧图小图对应的时间点,以及在雪碧大图里的坐标位置,一般被播放器用于实现预览。

  • Storage:

    雪碧图文件的存储位置。



20205
20206
20207
# File 'lib/v20190612/models.rb', line 20205

def WebVttPath
  @WebVttPath
end

#WidthObject

Parameters:

  • Definition:
  • Height:

    雪碧图小图的高度。

  • Width:

    雪碧图小图的宽度。

  • TotalCount:

    每一张雪碧图大图里小图的数量。

  • ImagePathSet:

    每一张雪碧图大图的路径。

  • WebVttPath:

    雪碧图子图位置与时间关系的 WebVtt 文件路径。WebVtt 文件表明了各个雪碧图小图对应的时间点,以及在雪碧大图里的坐标位置,一般被播放器用于实现预览。

  • Storage:

    雪碧图文件的存储位置。



20205
20206
20207
# File 'lib/v20190612/models.rb', line 20205

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
# File 'lib/v20190612/models.rb', line 20217

def deserialize(params)
  @Definition = params['Definition']
  @Height = params['Height']
  @Width = params['Width']
  @TotalCount = params['TotalCount']
  @ImagePathSet = params['ImagePathSet']
  @WebVttPath = params['WebVttPath']
  unless params['Storage'].nil?
    @Storage = TaskOutputStorage.new
    @Storage.deserialize(params['Storage'])
  end
end