Поделиться через


SendConversationMessageOptions Class

Definition

Request payload for sending a conversation message.

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

Constructors

SendConversationMessageOptions(ConversationMessageContent)

Initializes a new instance of SendConversationMessageOptions.

Properties

OutboundDeliveryStrategy

The options of the outbound delivery strategy for messages sent by participants in a conversation. Supports internalOnly, allChannels.

Request

Details of a send conversation message request. Please note ConversationMessageContent 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 AudioConversationMessageContent, DocumentConversationMessageContent, ImageConversationMessageContent, TemplateConversationMessageContent, TextConversationMessageContent and VideoConversationMessageContent.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<SendConversationMessageOptions>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<SendConversationMessageOptions>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<SendConversationMessageOptions>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SendConversationMessageOptions>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<SendConversationMessageOptions>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to