Class: TencentCloud::Iss::V20230517::PetAIResultInfo

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

Overview

宠物识别结果详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(time = nil, url = nil, petinfo = nil) ⇒ PetAIResultInfo

Returns a new instance of PetAIResultInfo.



6161
6162
6163
6164
6165
# File 'lib/v20230517/models.rb', line 6161

def initialize(time=nil, url=nil, petinfo=nil)
  @Time = time
  @Url = url
  @PetInfo = petinfo
end

Instance Attribute Details

#PetInfoObject

Parameters:

  • Time:

    时间字符串

  • Url:

    截图 URL

  • PetInfo:

    宠物信息



6159
6160
6161
# File 'lib/v20230517/models.rb', line 6159

def PetInfo
  @PetInfo
end

#TimeObject

Parameters:

  • Time:

    时间字符串

  • Url:

    截图 URL

  • PetInfo:

    宠物信息



6159
6160
6161
# File 'lib/v20230517/models.rb', line 6159

def Time
  @Time
end

#UrlObject

Parameters:

  • Time:

    时间字符串

  • Url:

    截图 URL

  • PetInfo:

    宠物信息



6159
6160
6161
# File 'lib/v20230517/models.rb', line 6159

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
# File 'lib/v20230517/models.rb', line 6167

def deserialize(params)
  @Time = params['Time']
  @Url = params['Url']
  unless params['PetInfo'].nil?
    @PetInfo = []
    params['PetInfo'].each do |i|
      baseairesultinfo_tmp = BaseAIResultInfo.new
      baseairesultinfo_tmp.deserialize(i)
      @PetInfo << baseairesultinfo_tmp
    end
  end
end