Class: TencentCloud::Iotexplorer::V20190423::AISearchInfo

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

Overview

AI视频搜索结果结构体。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(summary = nil, targets = nil, videourl = nil) ⇒ AISearchInfo

Returns a new instance of AISearchInfo.



31
32
33
34
35
# File 'lib/v20190423/models.rb', line 31

def initialize(summary=nil, targets=nil, videourl=nil)
  @Summary = summary
  @Targets = targets
  @VideoURL = videourl
end

Instance Attribute Details

#SummaryObject

Parameters:

  • Summary:

    基于搜索结果的总结

  • Targets:

    视频结果集

  • VideoURL:

    视频回放URL



29
30
31
# File 'lib/v20190423/models.rb', line 29

def Summary
  @Summary
end

#TargetsObject

Parameters:

  • Summary:

    基于搜索结果的总结

  • Targets:

    视频结果集

  • VideoURL:

    视频回放URL



29
30
31
# File 'lib/v20190423/models.rb', line 29

def Targets
  @Targets
end

#VideoURLObject

Parameters:

  • Summary:

    基于搜索结果的总结

  • Targets:

    视频结果集

  • VideoURL:

    视频回放URL



29
30
31
# File 'lib/v20190423/models.rb', line 29

def VideoURL
  @VideoURL
end

Instance Method Details

#deserialize(params) ⇒ Object



37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/v20190423/models.rb', line 37

def deserialize(params)
  @Summary = params['Summary']
  unless params['Targets'].nil?
    @Targets = []
    params['Targets'].each do |i|
      targetinfo_tmp = TargetInfo.new
      targetinfo_tmp.deserialize(i)
      @Targets << targetinfo_tmp
    end
  end
  @VideoURL = params['VideoURL']
end