AttachmentPayload Class

Definition

Inner Facebook Attachment payload that can be sent as part of a Facebook Attachment on a Facebook message.

public class AttachmentPayload
type AttachmentPayload = class
Public Class AttachmentPayload
Inheritance
AttachmentPayload

Constructors

AttachmentPayload()

Properties

AttachmentId

Gets or sets the ID of the attachment (for reusable attachments).

Buttons

Gets a list of buttons of the template.

Elements

Gets a list of media elements of the template.

IsReusable

Gets or sets a value indicating whether the attachment is reusable or not. Default false.

TemplateType

Gets or sets the type of the template attached.

Text

Gets or sets the text of the template.

Url

Gets or sets the URL of the attachment.

Methods

ShouldSerializeButtons()

Newtonsoft JSON method for conditionally serializing the Buttons property.

ShouldSerializeElements()

Newtonsoft JSON method for conditionally serializing the Elements property.

ShouldSerializeIsReusable()

Newtonsoft JSON method for conditionally serializing the IsReusable property.

Applies to