Class: TencentCloud::Zj::V20190121::SmsGetCrowdPackListResponse

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

Overview

短信人群包返回信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(total = nil, list = nil) ⇒ SmsGetCrowdPackListResponse

Returns a new instance of SmsGetCrowdPackListResponse.



1880
1881
1882
1883
# File 'lib/v20190121/models.rb', line 1880

def initialize(total=nil, list=nil)
  @Total = total
  @List = list
end

Instance Attribute Details

#ListObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Total:

    人群包总数

  • List:

    人群包返回数据列表



1878
1879
1880
# File 'lib/v20190121/models.rb', line 1878

def List
  @List
end

#TotalObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Total:

    人群包总数

  • List:

    人群包返回数据列表



1878
1879
1880
# File 'lib/v20190121/models.rb', line 1878

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
# File 'lib/v20190121/models.rb', line 1885

def deserialize(params)
  @Total = params['Total']
  unless params['List'].nil?
    @List = []
    params['List'].each do |i|
      smsgetcrowdpacklist_tmp = SmsGetCrowdPackList.new
      smsgetcrowdpacklist_tmp.deserialize(i)
      @List << smsgetcrowdpacklist_tmp
    end
  end
end