Class: TencentCloud::Ie::V20200304::MediaCuttingTimeInfo

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

Overview

编辑处理/剪切任务/时间信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, pointset = nil, intervalpoint = nil, sectionset = nil) ⇒ MediaCuttingTimeInfo

Returns a new instance of MediaCuttingTimeInfo.



1650
1651
1652
1653
1654
1655
# File 'lib/v20200304/models.rb', line 1650

def initialize(type=nil, pointset=nil, intervalpoint=nil, sectionset=nil)
  @Type = type
  @PointSet = pointset
  @IntervalPoint = intervalpoint
  @SectionSet = sectionset
end

Instance Attribute Details

#IntervalPointObject

PointSet:时间点集合;IntervalPoint:周期采样点;SectionSet:时间片段集合。

Parameters:

  • Type:

    时间类型,可选值:

  • PointSet:

    截取时间点集合,单位毫秒,Type=PointSet时必选。

  • IntervalPoint:

    周期采样点信息,Type=IntervalPoint时必选。

  • SectionSet:

    时间区间集合信息,Type=SectionSet时必选。



1648
1649
1650
# File 'lib/v20200304/models.rb', line 1648

def IntervalPoint
  @IntervalPoint
end

#PointSetObject

PointSet:时间点集合;IntervalPoint:周期采样点;SectionSet:时间片段集合。

Parameters:

  • Type:

    时间类型,可选值:

  • PointSet:

    截取时间点集合,单位毫秒,Type=PointSet时必选。

  • IntervalPoint:

    周期采样点信息,Type=IntervalPoint时必选。

  • SectionSet:

    时间区间集合信息,Type=SectionSet时必选。



1648
1649
1650
# File 'lib/v20200304/models.rb', line 1648

def PointSet
  @PointSet
end

#SectionSetObject

PointSet:时间点集合;IntervalPoint:周期采样点;SectionSet:时间片段集合。

Parameters:

  • Type:

    时间类型,可选值:

  • PointSet:

    截取时间点集合,单位毫秒,Type=PointSet时必选。

  • IntervalPoint:

    周期采样点信息,Type=IntervalPoint时必选。

  • SectionSet:

    时间区间集合信息,Type=SectionSet时必选。



1648
1649
1650
# File 'lib/v20200304/models.rb', line 1648

def SectionSet
  @SectionSet
end

#TypeObject

PointSet:时间点集合;IntervalPoint:周期采样点;SectionSet:时间片段集合。

Parameters:

  • Type:

    时间类型,可选值:

  • PointSet:

    截取时间点集合,单位毫秒,Type=PointSet时必选。

  • IntervalPoint:

    周期采样点信息,Type=IntervalPoint时必选。

  • SectionSet:

    时间区间集合信息,Type=SectionSet时必选。



1648
1649
1650
# File 'lib/v20200304/models.rb', line 1648

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
# File 'lib/v20200304/models.rb', line 1657

def deserialize(params)
  @Type = params['Type']
  @PointSet = params['PointSet']
  unless params['IntervalPoint'].nil?
    @IntervalPoint = IntervalTime.new
    @IntervalPoint.deserialize(params['IntervalPoint'])
  end
  unless params['SectionSet'].nil?
    @SectionSet = []
    params['SectionSet'].each do |i|
      sectiontime_tmp = SectionTime.new
      sectiontime_tmp.deserialize(i)
      @SectionSet << sectiontime_tmp
    end
  end
end