Class: TencentCloud::Zj::V20190121::CreateCampaignRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Zj::V20190121::CreateCampaignRequest
- Defined in:
- lib/v20190121/models.rb
Overview
CreateCampaign请求参数结构体
Instance Attribute Summary collapse
- #CrowdID ⇒ Object
- #License ⇒ Object
- #Name ⇒ Object
- #SendTime ⇒ Object
- #SmsType ⇒ Object
- #Strategies ⇒ Object
- #TemplateId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(license = nil, sendtime = nil, name = nil, strategies = nil, templateid = nil, crowdid = nil, smstype = nil) ⇒ CreateCampaignRequest
constructor
A new instance of CreateCampaignRequest.
Constructor Details
#initialize(license = nil, sendtime = nil, name = nil, strategies = nil, templateid = nil, crowdid = nil, smstype = nil) ⇒ CreateCampaignRequest
Returns a new instance of CreateCampaignRequest.
330 331 332 333 334 335 336 337 338 |
# File 'lib/v20190121/models.rb', line 330 def initialize(license=nil, sendtime=nil, name=nil, strategies=nil, templateid=nil, crowdid=nil, smstype=nil) @License = license @SendTime = sendtime @Name = name @Strategies = strategies @TemplateId = templateid @CrowdID = crowdid @SmsType = smstype end |
Instance Attribute Details
#CrowdID ⇒ Object
328 329 330 |
# File 'lib/v20190121/models.rb', line 328 def CrowdID @CrowdID end |
#License ⇒ Object
328 329 330 |
# File 'lib/v20190121/models.rb', line 328 def License @License end |
#Name ⇒ Object
328 329 330 |
# File 'lib/v20190121/models.rb', line 328 def Name @Name end |
#SendTime ⇒ Object
328 329 330 |
# File 'lib/v20190121/models.rb', line 328 def SendTime @SendTime end |
#SmsType ⇒ Object
328 329 330 |
# File 'lib/v20190121/models.rb', line 328 def SmsType @SmsType end |
#Strategies ⇒ Object
328 329 330 |
# File 'lib/v20190121/models.rb', line 328 def Strategies @Strategies end |
#TemplateId ⇒ Object
328 329 330 |
# File 'lib/v20190121/models.rb', line 328 def TemplateId @TemplateId end |
Instance Method Details
#deserialize(params) ⇒ Object
340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 |
# File 'lib/v20190121/models.rb', line 340 def deserialize(params) @License = params['License'] @SendTime = params['SendTime'] @Name = params['Name'] unless params['Strategies'].nil? @Strategies = [] params['Strategies'].each do |i| paasstrategy_tmp = PaasStrategy.new paasstrategy_tmp.deserialize(i) @Strategies << paasstrategy_tmp end end @TemplateId = params['TemplateId'] @CrowdID = params['CrowdID'] @SmsType = params['SmsType'] end |