Share via


InteractiveMessage Class

Definition

The Interactive message content to which user can read and respond.

public class InteractiveMessage : System.ClientModel.Primitives.IJsonModel<Azure.Communication.Messages.InteractiveMessage>, System.ClientModel.Primitives.IPersistableModel<Azure.Communication.Messages.InteractiveMessage>
type InteractiveMessage = class
    interface IJsonModel<InteractiveMessage>
    interface IPersistableModel<InteractiveMessage>
Public Class InteractiveMessage
Implements IJsonModel(Of InteractiveMessage), IPersistableModel(Of InteractiveMessage)
Inheritance
InteractiveMessage
Implements

Constructors

InteractiveMessage(TextMessageContent, ActionBindings)

Initializes a new instance of InteractiveMessage.

Properties

Action

The binding object to get or set Action which describes options user have to respond to message. Please note ActionBindings is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include WhatsAppButtonActionBindings, WhatsAppListActionBindings and WhatsAppUrlActionBindings.

Body

Gets or Sets Message body content. Emojis, markdown, and links are supported.

Footer

Gets or Sets Message footer content. Emojis, markdown, and links are supported.

Header

Gets or Sets Header content. Supports the following types:text, images etc. Please note MessageContent is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ButtonSetContent, DocumentMessageContent, ActionGroupContent, ImageMessageContent, TextMessageContent, LinkContent and VideoMessageContent.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<InteractiveMessage>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<InteractiveMessage>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<InteractiveMessage>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<InteractiveMessage>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<InteractiveMessage>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to