Class: TencentCloud::Zj::V20190121::SmsCampaignStatisticsData

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

Overview

短信活动统计响应

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(campaignid = nil, statistics = nil) ⇒ SmsCampaignStatisticsData

Returns a new instance of SmsCampaignStatisticsData.



1760
1761
1762
1763
# File 'lib/v20190121/models.rb', line 1760

def initialize(campaignid=nil, statistics=nil)
  @CampaignId = campaignid
  @Statistics = statistics
end

Instance Attribute Details

#CampaignIdObject

Parameters:

  • CampaignId:

    活动Id

  • Statistics:

    统计数据



1758
1759
1760
# File 'lib/v20190121/models.rb', line 1758

def CampaignId
  @CampaignId
end

#StatisticsObject

Parameters:

  • CampaignId:

    活动Id

  • Statistics:

    统计数据



1758
1759
1760
# File 'lib/v20190121/models.rb', line 1758

def Statistics
  @Statistics
end

Instance Method Details

#deserialize(params) ⇒ Object



1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
# File 'lib/v20190121/models.rb', line 1765

def deserialize(params)
  @CampaignId = params['CampaignId']
  unless params['Statistics'].nil?
    @Statistics = []
    params['Statistics'].each do |i|
      smscampaignstatisticscrowddata_tmp = SmsCampaignStatisticsCrowdData.new
      smscampaignstatisticscrowddata_tmp.deserialize(i)
      @Statistics << smscampaignstatisticscrowddata_tmp
    end
  end
end