Class: TencentCloud::Asr::V20190614::AsyncRecognitionTasks

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

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tasks = nil) ⇒ AsyncRecognitionTasks

Returns a new instance of AsyncRecognitionTasks.



48
49
50
# File 'lib/v20190614/models.rb', line 48

def initialize(tasks=nil)
  @Tasks = tasks
end

Instance Attribute Details

#TasksObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Tasks:

    任务列表



46
47
48
# File 'lib/v20190614/models.rb', line 46

def Tasks
  @Tasks
end

Instance Method Details

#deserialize(params) ⇒ Object



52
53
54
55
56
57
58
59
60
61
# File 'lib/v20190614/models.rb', line 52

def deserialize(params)
  unless params['Tasks'].nil?
    @Tasks = []
    params['Tasks'].each do |i|
      asyncrecognitiontaskinfo_tmp = AsyncRecognitionTaskInfo.new
      asyncrecognitiontaskinfo_tmp.deserialize(i)
      @Tasks << asyncrecognitiontaskinfo_tmp
    end
  end
end