Class: TencentCloud::Tbp::V20190627::Group

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

Overview

Group是消息组的具体定义,当前包含ContentType、Url、Content三个字段。其中,具体的ContentType字段定义,参考互联网MIME类型标准。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(contenttype = nil, url = nil, content = nil) ⇒ Group

Returns a new instance of Group.



33
34
35
36
37
# File 'lib/v20190627/models.rb', line 33

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

Instance Attribute Details

#ContentObject

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

Parameters:

  • ContentType:

    消息类型参考互联网MIME类型标准,当前仅支持"text/plain"。

  • Url:

    返回内容以链接形式提供。

  • Content:

    普通文本。



31
32
33
# File 'lib/v20190627/models.rb', line 31

def Content
  @Content
end

#ContentTypeObject

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

Parameters:

  • ContentType:

    消息类型参考互联网MIME类型标准,当前仅支持"text/plain"。

  • Url:

    返回内容以链接形式提供。

  • Content:

    普通文本。



31
32
33
# File 'lib/v20190627/models.rb', line 31

def ContentType
  @ContentType
end

#UrlObject

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

Parameters:

  • ContentType:

    消息类型参考互联网MIME类型标准,当前仅支持"text/plain"。

  • Url:

    返回内容以链接形式提供。

  • Content:

    普通文本。



31
32
33
# File 'lib/v20190627/models.rb', line 31

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



39
40
41
42
43
# File 'lib/v20190627/models.rb', line 39

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