Class: TencentCloud::Iai::V20180301::FaceHairAttributesInfo

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180301/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.



1566
1567
1568
1569
1570
# File 'lib/v20180301/models.rb', line 1566

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:灰白色



1564
1565
1566
# File 'lib/v20180301/models.rb', line 1564

def Bang
  @Bang
end

#ColorObject

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

Parameters:

  • Length:

    0:光头,1:短发,2:中发,3:长发,4:绑发

  • Bang:

    0:有刘海,1:无刘海

  • Color:

    0:黑色,1:金色,2:棕色,3:灰白色



1564
1565
1566
# File 'lib/v20180301/models.rb', line 1564

def Color
  @Color
end

#LengthObject

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

Parameters:

  • Length:

    0:光头,1:短发,2:中发,3:长发,4:绑发

  • Bang:

    0:有刘海,1:无刘海

  • Color:

    0:黑色,1:金色,2:棕色,3:灰白色



1564
1565
1566
# File 'lib/v20180301/models.rb', line 1564

def Length
  @Length
end

Instance Method Details

#deserialize(params) ⇒ Object



1572
1573
1574
1575
1576
# File 'lib/v20180301/models.rb', line 1572

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