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.



2647
2648
2649
2650
2651
# File 'lib/v20181119/models.rb', line 2647

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。



2645
2646
2647
# File 'lib/v20181119/models.rb', line 2645

def Angle
  @Angle
end

#EnterpriseLicenseInfosObject

Parameters:

  • EnterpriseLicenseInfos:

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

  • Angle:

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

  • RequestId:

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



2645
2646
2647
# File 'lib/v20181119/models.rb', line 2645

def EnterpriseLicenseInfos
  @EnterpriseLicenseInfos
end

#RequestIdObject

Parameters:

  • EnterpriseLicenseInfos:

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

  • Angle:

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

  • RequestId:

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



2645
2646
2647
# File 'lib/v20181119/models.rb', line 2645

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
# File 'lib/v20181119/models.rb', line 2653

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