Class: TencentCloud::Iai::V20200303::FaceHairAttributesInfo

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

Overview

人脸属性中的发型信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(length = nil, bang = nil, color = nil) ⇒ FaceHairAttributesInfo

Returns a new instance of FaceHairAttributesInfo.



1881
1882
1883
1884
1885
# File 'lib/v20200303/models.rb', line 1881

def initialize(length=nil, bang=nil, color=nil)
  @Length = length
  @Bang = bang
  @Color = color
end

Instance Attribute Details

#BangObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Length:

    取值范围:0:光头,1:短发,2:中发,3:长发,4:绑发。

  • Bang:

    取值范围:0:有刘海,1:无刘海。

  • Color:

    取值范围:0:黑色,1:金色,2:棕色,3:灰白色。



1879
1880
1881
# File 'lib/v20200303/models.rb', line 1879

def Bang
  @Bang
end

#ColorObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Length:

    取值范围:0:光头,1:短发,2:中发,3:长发,4:绑发。

  • Bang:

    取值范围:0:有刘海,1:无刘海。

  • Color:

    取值范围:0:黑色,1:金色,2:棕色,3:灰白色。



1879
1880
1881
# File 'lib/v20200303/models.rb', line 1879

def Color
  @Color
end

#LengthObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Length:

    取值范围:0:光头,1:短发,2:中发,3:长发,4:绑发。

  • Bang:

    取值范围:0:有刘海,1:无刘海。

  • Color:

    取值范围:0:黑色,1:金色,2:棕色,3:灰白色。



1879
1880
1881
# File 'lib/v20200303/models.rb', line 1879

def Length
  @Length
end

Instance Method Details

#deserialize(params) ⇒ Object



1887
1888
1889
1890
1891
# File 'lib/v20200303/models.rb', line 1887

def deserialize(params)
  @Length = params['Length']
  @Bang = params['Bang']
  @Color = params['Color']
end