CommunicationMessagesModelFactory.ExternalConversationParticipant Method

Definition

Initializes a new instance of ExternalConversationParticipant.

public static Azure.Communication.Messages.ExternalConversationParticipant ExternalConversationParticipant(string id = default, string displayName = default, System.Collections.Generic.IEnumerable<Azure.Communication.Messages.ConversationContact> contacts = default);
static member ExternalConversationParticipant : string * string * seq<Azure.Communication.Messages.ConversationContact> -> Azure.Communication.Messages.ExternalConversationParticipant
Public Shared Function ExternalConversationParticipant (Optional id As String = Nothing, Optional displayName As String = Nothing, Optional contacts As IEnumerable(Of ConversationContact) = Nothing) As ExternalConversationParticipant

Parameters

id
String

Participant Identifier.

displayName
String

Participant display name.

contacts
IEnumerable<ConversationContact>

List of external platform identifiers for the participant. Please note ConversationContact 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 BotContact, CommunicationContact and WhatsAppContact.

Returns

A new ExternalConversationParticipant instance for mocking.

Applies to