Class: TencentCloud::Cls::V20201016::NoticeContentTemplate

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

Overview

通知内容模板信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(noticecontentid = nil, name = nil, type = nil, noticecontents = nil, flag = nil, uin = nil, subuin = nil, createtime = nil, updatetime = nil) ⇒ NoticeContentTemplate

Returns a new instance of NoticeContentTemplate.



15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
# File 'lib/v20201016/models.rb', line 15737

def initialize(noticecontentid=nil, name=nil, type=nil, noticecontents=nil, flag=nil, uin=nil, subuin=nil, createtime=nil, updatetime=nil)
  @NoticeContentId = noticecontentid
  @Name = name
  @Type = type
  @NoticeContents = noticecontents
  @Flag = flag
  @Uin = uin
  @SubUin = subuin
  @CreateTime = createtime
  @UpdateTime = updatetime
end

Instance Attribute Details

#CreateTime ⇒ Object

0: 用户自定义 1: 系统内置

Parameters:

  • Uin: —

    创建者主账号。

  • SubUin: —

    创建/修改者子账号。

  • CreateTime: —

    创建时间 秒级(s)时间戳。

  • UpdateTime: —

    更新时间 秒级(s)时间戳。



15735
15736
15737
# File 'lib/v20201016/models.rb', line 15735

def CreateTime
  @CreateTime
end

#Flag ⇒ Object

0: 用户自定义 1: 系统内置

Parameters:

  • Uin: —

    创建者主账号。

  • SubUin: —

    创建/修改者子账号。

  • CreateTime: —

    创建时间 秒级(s)时间戳。

  • UpdateTime: —

    更新时间 秒级(s)时间戳。



15735
15736
15737
# File 'lib/v20201016/models.rb', line 15735

def Flag
  @Flag
end

#Name ⇒ Object

0: 用户自定义 1: 系统内置

Parameters:

  • Uin: —

    创建者主账号。

  • SubUin: —

    创建/修改者子账号。

  • CreateTime: —

    创建时间 秒级(s)时间戳。

  • UpdateTime: —

    更新时间 秒级(s)时间戳。



15735
15736
15737
# File 'lib/v20201016/models.rb', line 15735

def Name
  @Name
end

#NoticeContentId ⇒ Object

0: 用户自定义 1: 系统内置

Parameters:

  • Uin: —

    创建者主账号。

  • SubUin: —

    创建/修改者子账号。

  • CreateTime: —

    创建时间 秒级(s)时间戳。

  • UpdateTime: —

    更新时间 秒级(s)时间戳。



15735
15736
15737
# File 'lib/v20201016/models.rb', line 15735

def NoticeContentId
  @NoticeContentId
end

#NoticeContents ⇒ Object

0: 用户自定义 1: 系统内置

Parameters:

  • Uin: —

    创建者主账号。

  • SubUin: —

    创建/修改者子账号。

  • CreateTime: —

    创建时间 秒级(s)时间戳。

  • UpdateTime: —

    更新时间 秒级(s)时间戳。



15735
15736
15737
# File 'lib/v20201016/models.rb', line 15735

def NoticeContents
  @NoticeContents
end

#SubUin ⇒ Object

0: 用户自定义 1: 系统内置

Parameters:

  • Uin: —

    创建者主账号。

  • SubUin: —

    创建/修改者子账号。

  • CreateTime: —

    创建时间 秒级(s)时间戳。

  • UpdateTime: —

    更新时间 秒级(s)时间戳。



15735
15736
15737
# File 'lib/v20201016/models.rb', line 15735

def SubUin
  @SubUin
end

#Type ⇒ Object

0: 用户自定义 1: 系统内置

Parameters:

  • Uin: —

    创建者主账号。

  • SubUin: —

    创建/修改者子账号。

  • CreateTime: —

    创建时间 秒级(s)时间戳。

  • UpdateTime: —

    更新时间 秒级(s)时间戳。



15735
15736
15737
# File 'lib/v20201016/models.rb', line 15735

def Type
  @Type
end

#Uin ⇒ Object

0: 用户自定义 1: 系统内置

Parameters:

  • Uin: —

    创建者主账号。

  • SubUin: —

    创建/修改者子账号。

  • CreateTime: —

    创建时间 秒级(s)时间戳。

  • UpdateTime: —

    更新时间 秒级(s)时间戳。



15735
15736
15737
# File 'lib/v20201016/models.rb', line 15735

def Uin
  @Uin
end

#UpdateTime ⇒ Object

0: 用户自定义 1: 系统内置

Parameters:

  • Uin: —

    创建者主账号。

  • SubUin: —

    创建/修改者子账号。

  • CreateTime: —

    创建时间 秒级(s)时间戳。

  • UpdateTime: —

    更新时间 秒级(s)时间戳。



15735
15736
15737
# File 'lib/v20201016/models.rb', line 15735

def UpdateTime
  @UpdateTime
end

Instance Method Details

#deserialize(params) ⇒ Object



15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
# File 'lib/v20201016/models.rb', line 15749

def deserialize(params)
  @NoticeContentId = params['NoticeContentId']
  @Name = params['Name']
  @Type = params['Type']
  unless params['NoticeContents'].nil?
    @NoticeContents = []
    params['NoticeContents'].each do |i|
      noticecontent_tmp = NoticeContent.new
      noticecontent_tmp.deserialize(i)
      @NoticeContents << noticecontent_tmp
    end
  end
  @Flag = params['Flag']
  @Uin = params['Uin']
  @SubUin = params['SubUin']
  @CreateTime = params['CreateTime']
  @UpdateTime = params['UpdateTime']
end