Class: TencentCloud::Ivld::V20210903::CustomPersonInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ivld::V20210903::CustomPersonInfo
- Defined in:
- lib/v20210903/models.rb
Overview
自定义人物信息
Instance Attribute Summary collapse
- #BasicInfo ⇒ Object
- #CreateTime ⇒ Object
- #ImageInfoSet ⇒ Object
- #L1Category ⇒ Object
- #L2Category ⇒ Object
- #Name ⇒ Object
- #PersonId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(personid = nil, name = nil, basicinfo = nil, l1category = nil, l2category = nil, imageinfoset = nil, createtime = nil) ⇒ CustomPersonInfo
constructor
A new instance of CustomPersonInfo.
Constructor Details
#initialize(personid = nil, name = nil, basicinfo = nil, l1category = nil, l2category = nil, imageinfoset = nil, createtime = nil) ⇒ CustomPersonInfo
Returns a new instance of CustomPersonInfo.
709 710 711 712 713 714 715 716 717 |
# File 'lib/v20210903/models.rb', line 709 def initialize(personid=nil, name=nil, basicinfo=nil, l1category=nil, l2category=nil, imageinfoset=nil, createtime=nil) @PersonId = personid @Name = name @BasicInfo = basicinfo @L1Category = l1category @L2Category = l2category @ImageInfoSet = imageinfoset @CreateTime = createtime end |
Instance Attribute Details
#BasicInfo ⇒ Object
707 708 709 |
# File 'lib/v20210903/models.rb', line 707 def BasicInfo @BasicInfo end |
#CreateTime ⇒ Object
707 708 709 |
# File 'lib/v20210903/models.rb', line 707 def CreateTime @CreateTime end |
#ImageInfoSet ⇒ Object
707 708 709 |
# File 'lib/v20210903/models.rb', line 707 def ImageInfoSet @ImageInfoSet end |
#L1Category ⇒ Object
707 708 709 |
# File 'lib/v20210903/models.rb', line 707 def L1Category @L1Category end |
#L2Category ⇒ Object
707 708 709 |
# File 'lib/v20210903/models.rb', line 707 def L2Category @L2Category end |
#Name ⇒ Object
707 708 709 |
# File 'lib/v20210903/models.rb', line 707 def Name @Name end |
#PersonId ⇒ Object
707 708 709 |
# File 'lib/v20210903/models.rb', line 707 def PersonId @PersonId end |
Instance Method Details
#deserialize(params) ⇒ Object
719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 |
# File 'lib/v20210903/models.rb', line 719 def deserialize(params) @PersonId = params['PersonId'] @Name = params['Name'] @BasicInfo = params['BasicInfo'] @L1Category = params['L1Category'] @L2Category = params['L2Category'] unless params['ImageInfoSet'].nil? @ImageInfoSet = [] params['ImageInfoSet'].each do |i| personimageinfo_tmp = PersonImageInfo.new personimageinfo_tmp.deserialize(i) @ImageInfoSet << personimageinfo_tmp end end @CreateTime = params['CreateTime'] end |