Class: TencentCloud::Cpdp::V20190820::CloudExternalPromptGroup

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

Overview

渠道扩展促销信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channelname = nil, externalpromptinfolist = nil) ⇒ CloudExternalPromptGroup

Returns a new instance of CloudExternalPromptGroup.



4076
4077
4078
4079
# File 'lib/v20190820/models.rb', line 4076

def initialize(channelname=nil, externalpromptinfolist=nil)
  @ChannelName = channelname
  @ExternalPromptInfoList = externalpromptinfolist
end

Instance Attribute Details

#ChannelNameObject

为米大师定义的枚举值: wechat 微信渠道 ChannelName为wechat时,组成为 <Wechat-ExternalPromptInfo>

Parameters:

  • ChannelName:

    渠道名。

  • ExternalPromptInfoList:

    渠道扩展促销信息列表,由各个渠道自行定义。



4074
4075
4076
# File 'lib/v20190820/models.rb', line 4074

def ChannelName
  @ChannelName
end

#ExternalPromptInfoListObject

为米大师定义的枚举值: wechat 微信渠道 ChannelName为wechat时,组成为 <Wechat-ExternalPromptInfo>

Parameters:

  • ChannelName:

    渠道名。

  • ExternalPromptInfoList:

    渠道扩展促销信息列表,由各个渠道自行定义。



4074
4075
4076
# File 'lib/v20190820/models.rb', line 4074

def ExternalPromptInfoList
  @ExternalPromptInfoList
end

Instance Method Details

#deserialize(params) ⇒ Object



4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
# File 'lib/v20190820/models.rb', line 4081

def deserialize(params)
  @ChannelName = params['ChannelName']
  unless params['ExternalPromptInfoList'].nil?
    @ExternalPromptInfoList = []
    params['ExternalPromptInfoList'].each do |i|
      cloudexternalpromptinfo_tmp = CloudExternalPromptInfo.new
      cloudexternalpromptinfo_tmp.deserialize(i)
      @ExternalPromptInfoList << cloudexternalpromptinfo_tmp
    end
  end
end