CommunicationMessagesModelFactory.CommunicationConversation Method

Definition

Initializes a new instance of CommunicationConversation.

public static Azure.Communication.Messages.CommunicationConversation CommunicationConversation(string id = default, string topic = default, System.Collections.Generic.IEnumerable<string> deliveryChannelIds = default, Azure.Communication.Messages.OutboundDeliveryStrategyKind? outboundDeliveryStrategy = default, System.Collections.Generic.IEnumerable<Azure.Communication.Messages.ConversationParticipant> participants = default);
static member CommunicationConversation : string * string * seq<string> * Nullable<Azure.Communication.Messages.OutboundDeliveryStrategyKind> * seq<Azure.Communication.Messages.ConversationParticipant> -> Azure.Communication.Messages.CommunicationConversation
Public Shared Function CommunicationConversation (Optional id As String = Nothing, Optional topic As String = Nothing, Optional deliveryChannelIds As IEnumerable(Of String) = Nothing, Optional outboundDeliveryStrategy As Nullable(Of OutboundDeliveryStrategyKind) = Nothing, Optional participants As IEnumerable(Of ConversationParticipant) = Nothing) As CommunicationConversation

Parameters

id
String

The conversation ID.

topic
String

The conversation topic.

deliveryChannelIds
IEnumerable<String>

List of delivery channel IDs.

outboundDeliveryStrategy
Nullable<OutboundDeliveryStrategyKind>

Outbound delivery strategy for the conversation.

participants
IEnumerable<ConversationParticipant>

List of participants involved in the conversation. Please note ConversationParticipant 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 ExternalConversationParticipant and InternalConversationParticipant.

Returns

A new CommunicationConversation instance for mocking.

Applies to