Microsoft.Bot.Builder.FormFlow.Advanced.Extensions Class Reference

Static Public Member Functions

static IList< AttachmentGenerateHeroCard (this FormPrompt prompt)
 Generate a hero card from a FormPrompt. More...
 
static IList< AttachmentGenerateHeroCards (this FormPrompt prompt)
 Generate a list of hero cards from a prompt definition. More...
 
static bool GenerateMessages (this FormPrompt prompt, IMessageActivity preamble, IMessageActivity promptMessage)
 Given a prompt definition generate messages to send back. More...
 
static Type GetGenericElementType (this Type type)
 Return the underlying type of generic IEnumerable. More...
 
static bool IsDouble (this Type type)
 Type is float or double. More...
 
static bool IsGenericCollectionType (this Type type)
 Type implements generic ICollection. More...
 
static bool IsGenericEnumerableType (this Type type)
 Type implements generic IEnumerable. More...
 
static bool IsICollection (this Type type)
 Type implements ICollection. More...
 
static bool IsIEnumerable (this Type type)
 Type implements IEnumerable. More...
 
static bool IsIList (this Type type)
 Type implements IList. More...
 
static bool IsIntegral (this Type type)
 Type is integral. More...
 
static bool IsListCollectionType (this Type type)
 Type implements generic IList. More...
 
static bool IsNullable (this Type type)
 Type is nullable. More...
 

Detailed Description

Definition at line 40 of file FormFlow/Extensions.cs.

Member Function Documentation

static IList<Attachment> Microsoft.Bot.Builder.FormFlow.Advanced.Extensions.GenerateHeroCard ( this FormPrompt  prompt)
inlinestatic

Generate a hero card from a FormPrompt.

Parameters
promptPrompt definition.
Returns
Either an empty list if no buttons or a list with one hero card.

Definition at line 197 of file IPrompt.cs.

static IList<Attachment> Microsoft.Bot.Builder.FormFlow.Advanced.Extensions.GenerateHeroCards ( this FormPrompt  prompt)
inlinestatic

Generate a list of hero cards from a prompt definition.

Parameters
promptPrompt definition.
Returns
List of hero cards.

Definition at line 223 of file IPrompt.cs.

static bool Microsoft.Bot.Builder.FormFlow.Advanced.Extensions.GenerateMessages ( this FormPrompt  prompt,
IMessageActivity  preamble,
IMessageActivity  promptMessage 
)
inlinestatic

Given a prompt definition generate messages to send back.

Parameters
promptPrompt definition.
preambleSimple text message with all except last line of prompt to allow markdown in prompts.
promptMessageMessage with prompt definition including cards.
Returns
True if preamble should be sent.

Definition at line 248 of file IPrompt.cs.

static Type Microsoft.Bot.Builder.FormFlow.Advanced.Extensions.GetGenericElementType ( this Type  type)
inlinestatic

Return the underlying type of generic IEnumerable.

Parameters
typeType to check.
Returns
True if implements generic IEnumerable.

Definition at line 206 of file FormFlow/Extensions.cs.

static bool Microsoft.Bot.Builder.FormFlow.Advanced.Extensions.IsDouble ( this Type  type)
inlinestatic

Type is float or double.

Parameters
typeType to check.
Returns
True if float or double.

Definition at line 176 of file FormFlow/Extensions.cs.

static bool Microsoft.Bot.Builder.FormFlow.Advanced.Extensions.IsGenericCollectionType ( this Type  type)
inlinestatic

Type implements generic ICollection.

Parameters
typeType to check.
Returns
True if implements generic ICollection.

Definition at line 139 of file FormFlow/Extensions.cs.

static bool Microsoft.Bot.Builder.FormFlow.Advanced.Extensions.IsGenericEnumerableType ( this Type  type)
inlinestatic

Type implements generic IEnumerable.

Parameters
typeType to check.
Returns
True if implements generic IEnumerable.

Definition at line 149 of file FormFlow/Extensions.cs.

static bool Microsoft.Bot.Builder.FormFlow.Advanced.Extensions.IsICollection ( this Type  type)
inlinestatic

Type implements ICollection.

Parameters
typeType to check.
Returns
True if implements ICollection.

Definition at line 109 of file FormFlow/Extensions.cs.

static bool Microsoft.Bot.Builder.FormFlow.Advanced.Extensions.IsIEnumerable ( this Type  type)
inlinestatic

Type implements IEnumerable.

Parameters
typeType to check.
Returns
True if implements IEnumerable.

Definition at line 119 of file FormFlow/Extensions.cs.

static bool Microsoft.Bot.Builder.FormFlow.Advanced.Extensions.IsIList ( this Type  type)
inlinestatic

Type implements IList.

Parameters
typeType to check.
Returns
True if implements IList.

Definition at line 129 of file FormFlow/Extensions.cs.

static bool Microsoft.Bot.Builder.FormFlow.Advanced.Extensions.IsIntegral ( this Type  type)
inlinestatic

Type is integral.

Parameters
typeType to check.
Returns
True if integral.

Definition at line 159 of file FormFlow/Extensions.cs.

static bool Microsoft.Bot.Builder.FormFlow.Advanced.Extensions.IsListCollectionType ( this Type  type)
inlinestatic

Type implements generic IList.

Parameters
typeType to check.
Returns
True if implements generic IList.

Definition at line 186 of file FormFlow/Extensions.cs.

static bool Microsoft.Bot.Builder.FormFlow.Advanced.Extensions.IsNullable ( this Type  type)
inlinestatic

Type is nullable.

Parameters
typeType to check.
Returns
True if nullable.

Definition at line 196 of file FormFlow/Extensions.cs.


The documentation for this class was generated from the following files: