CreateConversationOptionsBuilder Class

Definition

Provides a builder for configuring and creating a new conversation with specified conversation parameters.

public class CreateConversationOptionsBuilder
type CreateConversationOptionsBuilder = class
Public Class CreateConversationOptionsBuilder
Inheritance
CreateConversationOptionsBuilder

Constructors

Name Description
CreateConversationOptionsBuilder()

Methods

Name Description
Build()

Builds and returns a configured instance of the CreateConversation object.

Create(IDictionary<String,String>, ChannelId, String, ConversationParameters)

Creates a new instance of the CreateConversationOptionsBuilder class for initializing a conversation with the specified identity, channel, and parameters.

Create(String, ChannelId, String, ConversationParameters)

Creates a new instance of the CreateConversationOptionsBuilder class for initializing a conversation with the specified agent and channel.

IsGroup(Boolean)

Specifies whether the conversation being created is a group conversation.

WithActivity(IActivity)

Adds an Activity to the conversation being created. This does not apply to all Channel types, but can be used to specify the initial message for those that do. Teams supports this, and will use the Activity as the initial message in the conversation. For channels that do not support this, the Activity will be ignored.

WithAudience(String)

Sets the audience for the conversation being created.

WithChannelData(Object)

Sets the channel-specific data for the conversation and returns the updated builder instance.

WithScope(String)

Sets the scope for the conversation being created.

WithStoreConversation(Boolean)

Specifies whether the conversation should be stored for future retrieval.

WithTeamsChannelId(String)

Specifies the Microsoft Teams channel ID to associate with the conversation being built.

WithTenantId(String)

Sets the tenant identifier for the conversation being created and returns the builder instance for method chaining.

WithTopicName(String)

Sets the topic name for the conversation being created.

WithUser(ChannelAccount)

Specifies a user to include as a member in the conversation being created.

WithUser(String, String)

Specifies the user to include as a participant in the conversation being built.

Applies to