ChatModelFactory.ChatParticipant Method

Definition

Overloads

ChatParticipant(CommunicationIdentifier, String, Nullable<DateTimeOffset>)

Initializes a new instance of the ChatParticipant class.

ChatParticipant(CommunicationIdentifier, String, Nullable<DateTimeOffset>, IDictionary<String,String>)

Initializes a new instance of the ChatParticipant class.

ChatParticipant(CommunicationIdentifier, String, Nullable<DateTimeOffset>)

Source:
ChatModelFactory.cs
Source:
ChatModelFactory.cs

Initializes a new instance of the ChatParticipant class.

public static Azure.Communication.Chat.ChatParticipant ChatParticipant (Azure.Communication.CommunicationIdentifier user, string displayName, DateTimeOffset? shareHistoryTime);
static member ChatParticipant : Azure.Communication.CommunicationIdentifier * string * Nullable<DateTimeOffset> -> Azure.Communication.Chat.ChatParticipant
Public Shared Function ChatParticipant (user As CommunicationIdentifier, displayName As String, shareHistoryTime As Nullable(Of DateTimeOffset)) As ChatParticipant

Parameters

displayName
String

Display name for the chat thread member.

shareHistoryTime
Nullable<DateTimeOffset>

Time from which the chat history is shared with the member. The timestamp is in ISO8601 format: yyyy-MM-ddTHH:mm:ssZ.

Returns

A new ChatParticipant instance for mocking.

Applies to

ChatParticipant(CommunicationIdentifier, String, Nullable<DateTimeOffset>, IDictionary<String,String>)

Source:
ChatModelFactory.cs

Initializes a new instance of the ChatParticipant class.

public static Azure.Communication.Chat.ChatParticipant ChatParticipant (Azure.Communication.CommunicationIdentifier user, string displayName, DateTimeOffset? shareHistoryTime, System.Collections.Generic.IDictionary<string,string> metadata);
static member ChatParticipant : Azure.Communication.CommunicationIdentifier * string * Nullable<DateTimeOffset> * System.Collections.Generic.IDictionary<string, string> -> Azure.Communication.Chat.ChatParticipant
Public Shared Function ChatParticipant (user As CommunicationIdentifier, displayName As String, shareHistoryTime As Nullable(Of DateTimeOffset), metadata As IDictionary(Of String, String)) As ChatParticipant

Parameters

displayName
String

Display name for the chat thread member.

shareHistoryTime
Nullable<DateTimeOffset>

Time from which the chat history is shared with the member. The timestamp is in ISO8601 format: yyyy-MM-ddTHH:mm:ssZ.

metadata
IDictionary<String,String>

Property bag of participant metadata key - value pairs.

Returns

A new ChatParticipant instance for mocking.

Applies to