CommunicationMessagesModelFactory.InteractiveMessage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of InteractiveMessage.
public static Azure.Communication.Messages.InteractiveMessage InteractiveMessage(Azure.Communication.Messages.MessageContent header = default, Azure.Communication.Messages.TextMessageContent body = default, Azure.Communication.Messages.TextMessageContent footer = default, Azure.Communication.Messages.ActionBindings action = default);
static member InteractiveMessage : Azure.Communication.Messages.MessageContent * Azure.Communication.Messages.TextMessageContent * Azure.Communication.Messages.TextMessageContent * Azure.Communication.Messages.ActionBindings -> Azure.Communication.Messages.InteractiveMessage
Public Shared Function InteractiveMessage (Optional header As MessageContent = Nothing, Optional body As TextMessageContent = Nothing, Optional footer As TextMessageContent = Nothing, Optional action As ActionBindings = Nothing) As InteractiveMessage
Parameters
- header
- MessageContent
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.
- body
- TextMessageContent
Gets or Sets Message body content. Emojis, markdown, and links are supported.
- footer
- TextMessageContent
Gets or Sets Message footer content. Emojis, markdown, and links are supported.
- action
- ActionBindings
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.
Returns
A new InteractiveMessage instance for mocking.
Applies to
Azure SDK for .NET