Class: TencentCloud::Ocr::V20181119::EnterpriseLicenseOCRResponse

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

Overview

EnterpriseLicenseOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enterpriselicenseinfos = nil, angle = nil, requestid = nil) ⇒ EnterpriseLicenseOCRResponse

Returns a new instance of EnterpriseLicenseOCRResponse.



2759
2760
2761
2762
2763
# File 'lib/v20181119/models.rb', line 2759

def initialize(enterpriselicenseinfos=nil, angle=nil, requestid=nil)
  @EnterpriseLicenseInfos = enterpriselicenseinfos
  @Angle = angle
  @RequestId = requestid
end

Instance Attribute Details

#AngleObject

Parameters:

  • EnterpriseLicenseInfos:

    企业证照识别结果,具体内容请点击左侧链接。

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2757
2758
2759
# File 'lib/v20181119/models.rb', line 2757

def Angle
  @Angle
end

#EnterpriseLicenseInfosObject

Parameters:

  • EnterpriseLicenseInfos:

    企业证照识别结果,具体内容请点击左侧链接。

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2757
2758
2759
# File 'lib/v20181119/models.rb', line 2757

def EnterpriseLicenseInfos
  @EnterpriseLicenseInfos
end

#RequestIdObject

Parameters:

  • EnterpriseLicenseInfos:

    企业证照识别结果,具体内容请点击左侧链接。

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2757
2758
2759
# File 'lib/v20181119/models.rb', line 2757

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
# File 'lib/v20181119/models.rb', line 2765

def deserialize(params)
  unless params['EnterpriseLicenseInfos'].nil?
    @EnterpriseLicenseInfos = []
    params['EnterpriseLicenseInfos'].each do |i|
      enterpriselicenseinfo_tmp = EnterpriseLicenseInfo.new
      enterpriselicenseinfo_tmp.deserialize(i)
      @EnterpriseLicenseInfos << enterpriselicenseinfo_tmp
    end
  end
  @Angle = params['Angle']
  @RequestId = params['RequestId']
end