Class: TencentCloud::Ivld::V20210903::CustomPersonInfo

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

Overview

自定义人物信息

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#BasicInfoObject

Parameters:

  • PersonId:

    自定义人物Id

  • Name:

    自定义人物姓名

  • BasicInfo:

    自定义人物简介信息

  • L1Category:

    一级自定义人物类型

  • L2Category:

    二级自定义人物类型

  • ImageInfoSet:

    自定义人物图片信息

  • CreateTime:

    自定义人物创建时间



707
708
709
# File 'lib/v20210903/models.rb', line 707

def BasicInfo
  @BasicInfo
end

#CreateTimeObject

Parameters:

  • PersonId:

    自定义人物Id

  • Name:

    自定义人物姓名

  • BasicInfo:

    自定义人物简介信息

  • L1Category:

    一级自定义人物类型

  • L2Category:

    二级自定义人物类型

  • ImageInfoSet:

    自定义人物图片信息

  • CreateTime:

    自定义人物创建时间



707
708
709
# File 'lib/v20210903/models.rb', line 707

def CreateTime
  @CreateTime
end

#ImageInfoSetObject

Parameters:

  • PersonId:

    自定义人物Id

  • Name:

    自定义人物姓名

  • BasicInfo:

    自定义人物简介信息

  • L1Category:

    一级自定义人物类型

  • L2Category:

    二级自定义人物类型

  • ImageInfoSet:

    自定义人物图片信息

  • CreateTime:

    自定义人物创建时间



707
708
709
# File 'lib/v20210903/models.rb', line 707

def ImageInfoSet
  @ImageInfoSet
end

#L1CategoryObject

Parameters:

  • PersonId:

    自定义人物Id

  • Name:

    自定义人物姓名

  • BasicInfo:

    自定义人物简介信息

  • L1Category:

    一级自定义人物类型

  • L2Category:

    二级自定义人物类型

  • ImageInfoSet:

    自定义人物图片信息

  • CreateTime:

    自定义人物创建时间



707
708
709
# File 'lib/v20210903/models.rb', line 707

def L1Category
  @L1Category
end

#L2CategoryObject

Parameters:

  • PersonId:

    自定义人物Id

  • Name:

    自定义人物姓名

  • BasicInfo:

    自定义人物简介信息

  • L1Category:

    一级自定义人物类型

  • L2Category:

    二级自定义人物类型

  • ImageInfoSet:

    自定义人物图片信息

  • CreateTime:

    自定义人物创建时间



707
708
709
# File 'lib/v20210903/models.rb', line 707

def L2Category
  @L2Category
end

#NameObject

Parameters:

  • PersonId:

    自定义人物Id

  • Name:

    自定义人物姓名

  • BasicInfo:

    自定义人物简介信息

  • L1Category:

    一级自定义人物类型

  • L2Category:

    二级自定义人物类型

  • ImageInfoSet:

    自定义人物图片信息

  • CreateTime:

    自定义人物创建时间



707
708
709
# File 'lib/v20210903/models.rb', line 707

def Name
  @Name
end

#PersonIdObject

Parameters:

  • PersonId:

    自定义人物Id

  • Name:

    自定义人物姓名

  • BasicInfo:

    自定义人物简介信息

  • L1Category:

    一级自定义人物类型

  • L2Category:

    二级自定义人物类型

  • ImageInfoSet:

    自定义人物图片信息

  • CreateTime:

    自定义人物创建时间



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