Class: TencentCloud::Iss::V20230517::SmokingAIResultInfo

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, smokinginfo = nil) ⇒ SmokingAIResultInfo

Returns a new instance of SmokingAIResultInfo.



6827
6828
6829
6830
6831
# File 'lib/v20230517/models.rb', line 6827

def initialize(time=nil, url=nil, smokinginfo=nil)
  @Time = time
  @Url = url
  @SmokingInfo = smokinginfo
end

Instance Attribute Details

#SmokingInfoObject

Parameters:

  • Time:

    时间字符串

  • Url:

    截图 URL

  • SmokingInfo:

    抽烟信息



6825
6826
6827
# File 'lib/v20230517/models.rb', line 6825

def SmokingInfo
  @SmokingInfo
end

#TimeObject

Parameters:

  • Time:

    时间字符串

  • Url:

    截图 URL

  • SmokingInfo:

    抽烟信息



6825
6826
6827
# File 'lib/v20230517/models.rb', line 6825

def Time
  @Time
end

#UrlObject

Parameters:

  • Time:

    时间字符串

  • Url:

    截图 URL

  • SmokingInfo:

    抽烟信息



6825
6826
6827
# File 'lib/v20230517/models.rb', line 6825

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
# File 'lib/v20230517/models.rb', line 6833

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