Class: TencentCloud::Zj::V20190121::CreateMmsInstanceItem

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

Overview

创建样例时候content元素

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(contenttype = nil, content = nil) ⇒ CreateMmsInstanceItem

Returns a new instance of CreateMmsInstanceItem.



390
391
392
393
# File 'lib/v20190121/models.rb', line 390

def initialize(contenttype=nil, content=nil)
  @ContentType = contenttype
  @Content = content
end

Instance Attribute Details

#ContentObject

Parameters:

  • ContentType:

    素材类型:1-文本 2-图片 3-视频 4-音频

  • Content:

    素材内容:如果素材是文本类型,直接填写文本内容,否则填写素材文件上传到cos后的url地址



388
389
390
# File 'lib/v20190121/models.rb', line 388

def Content
  @Content
end

#ContentTypeObject

Parameters:

  • ContentType:

    素材类型:1-文本 2-图片 3-视频 4-音频

  • Content:

    素材内容:如果素材是文本类型,直接填写文本内容,否则填写素材文件上传到cos后的url地址



388
389
390
# File 'lib/v20190121/models.rb', line 388

def ContentType
  @ContentType
end

Instance Method Details

#deserialize(params) ⇒ Object



395
396
397
398
# File 'lib/v20190121/models.rb', line 395

def deserialize(params)
  @ContentType = params['ContentType']
  @Content = params['Content']
end