Class: TencentCloud::Mrs::V20200910::ImageToClassResponse

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

Overview

ImageToClass返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(texttypelist = nil, requestid = nil) ⇒ ImageToClassResponse



5080
5081
5082
5083
# File 'lib/v20200910/models.rb', line 5080

def initialize(texttypelist=nil, requestid=nil)
  @TextTypeList = texttypelist
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject



5078
5079
5080
# File 'lib/v20200910/models.rb', line 5078

def RequestId
  @RequestId
end

#TextTypeListObject



5078
5079
5080
# File 'lib/v20200910/models.rb', line 5078

def TextTypeList
  @TextTypeList
end

Instance Method Details

#deserialize(params) ⇒ Object



5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
# File 'lib/v20200910/models.rb', line 5085

def deserialize(params)
  unless params['TextTypeList'].nil?
    @TextTypeList = []
    params['TextTypeList'].each do |i|
      texttype_tmp = TextType.new
      texttype_tmp.deserialize(i)
      @TextTypeList << texttype_tmp
    end
  end
  @RequestId = params['RequestId']
end