Class: TencentCloud::Zj::V20190121::SmsCampaignStatisticsCrowdData

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

Overview

短信活动统计人群包数据

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(crowdid = nil, crowdname = nil, crowdcount = nil, templatelist = nil) ⇒ SmsCampaignStatisticsCrowdData

Returns a new instance of SmsCampaignStatisticsCrowdData.



1729
1730
1731
1732
1733
1734
# File 'lib/v20190121/models.rb', line 1729

def initialize(crowdid=nil, crowdname=nil, crowdcount=nil, templatelist=nil)
  @CrowdId = crowdid
  @CrowdName = crowdname
  @CrowdCount = crowdcount
  @TemplateList = templatelist
end

Instance Attribute Details

#CrowdCountObject

Parameters:

  • CrowdId:

    人群包id

  • CrowdName:

    人群包名称

  • CrowdCount:

    人群包目标触达总数

  • TemplateList:

    模板列表



1727
1728
1729
# File 'lib/v20190121/models.rb', line 1727

def CrowdCount
  @CrowdCount
end

#CrowdIdObject

Parameters:

  • CrowdId:

    人群包id

  • CrowdName:

    人群包名称

  • CrowdCount:

    人群包目标触达总数

  • TemplateList:

    模板列表



1727
1728
1729
# File 'lib/v20190121/models.rb', line 1727

def CrowdId
  @CrowdId
end

#CrowdNameObject

Parameters:

  • CrowdId:

    人群包id

  • CrowdName:

    人群包名称

  • CrowdCount:

    人群包目标触达总数

  • TemplateList:

    模板列表



1727
1728
1729
# File 'lib/v20190121/models.rb', line 1727

def CrowdName
  @CrowdName
end

#TemplateListObject

Parameters:

  • CrowdId:

    人群包id

  • CrowdName:

    人群包名称

  • CrowdCount:

    人群包目标触达总数

  • TemplateList:

    模板列表



1727
1728
1729
# File 'lib/v20190121/models.rb', line 1727

def TemplateList
  @TemplateList
end

Instance Method Details

#deserialize(params) ⇒ Object



1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
# File 'lib/v20190121/models.rb', line 1736

def deserialize(params)
  @CrowdId = params['CrowdId']
  @CrowdName = params['CrowdName']
  @CrowdCount = params['CrowdCount']
  unless params['TemplateList'].nil?
    @TemplateList = []
    params['TemplateList'].each do |i|
      smscampaignstatisticstemplatedata_tmp = SmsCampaignStatisticsTemplateData.new
      smscampaignstatisticstemplatedata_tmp.deserialize(i)
      @TemplateList << smscampaignstatisticstemplatedata_tmp
    end
  end
end