Class: TencentCloud::Ams::V20200608::ImageSegments

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

Overview

图片段信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result = nil, offsettime = nil) ⇒ ImageSegments

Returns a new instance of ImageSegments.



1175
1176
1177
1178
# File 'lib/v20200608/models.rb', line 1175

def initialize(result=nil, offsettime=nil)
  @Result = result
  @OffsetTime = offsettime
end

Instance Attribute Details

#OffsetTimeObject

点播文件:该值为相对于视频偏移时间,单位为秒,例如:0,5,10 直播流:该值为时间戳,例如:1594650717

Parameters:

  • Result:

    画面截帧结果详情

  • OffsetTime:

    截帧时间。



1173
1174
1175
# File 'lib/v20200608/models.rb', line 1173

def OffsetTime
  @OffsetTime
end

#ResultObject

点播文件:该值为相对于视频偏移时间,单位为秒,例如:0,5,10 直播流:该值为时间戳,例如:1594650717

Parameters:

  • Result:

    画面截帧结果详情

  • OffsetTime:

    截帧时间。



1173
1174
1175
# File 'lib/v20200608/models.rb', line 1173

def Result
  @Result
end

Instance Method Details

#deserialize(params) ⇒ Object



1180
1181
1182
1183
1184
1185
1186
# File 'lib/v20200608/models.rb', line 1180

def deserialize(params)
  unless params['Result'].nil?
    @Result = ImageResult.new
    @Result.deserialize(params['Result'])
  end
  @OffsetTime = params['OffsetTime']
end