ChoiceFactory Class

Definition

Assists with formatting a message activity that contains a list of choices.

public class ChoiceFactory
type ChoiceFactory = class
Public Class ChoiceFactory
Inheritance
ChoiceFactory

Constructors

ChoiceFactory()

Methods

ForChannel(String, IList<Choice>, String, String, ChoiceFactoryOptions, String, IList<String>)

Creates a message activity that includes a list of choices formatted based on the capabilities of a given channel.

ForChannel(String, IList<Choice>, String, String, ChoiceFactoryOptions)

Creates a message activity that includes a list of choices formatted based on the capabilities of a given channel.

HeroCard(IList<Choice>, String, String)

Creates a message activity that includes a list of choices that have been added as HeroCard's.

Inline(IList<Choice>, String, String, ChoiceFactoryOptions)

Creates a message activity that includes a list of choices formatted as an inline list.

List(IList<Choice>, String, String, ChoiceFactoryOptions)

Creates a message activity containing a list of choices that has been formatted as a numbered or bulleted list.

List(IList<String>, String, String, ChoiceFactoryOptions)

Creates a message activity that includes a list of choices formatted as a numbered or bulleted list.

SuggestedAction(IList<Choice>, String, String, IList<String>)

Creates a message activity containing a list of choices that have been added as suggested actions.

SuggestedAction(IList<Choice>, String, String)

Creates a message activity containing a list of choices that have been added as suggested actions.

SuggestedAction(IList<String>, String, String, IList<String>)

Creates a message activity containing a list of choices that have been added as suggested actions.

SuggestedAction(IList<String>, String, String)

Creates a message activity containing a list of choices that have been added as suggested actions.

ToChoices(IList<String>)

Takes a list of strings and returns them as Choice.

Applies to