Microsoft.Bot.Builder.Luis.IEntityToType Interface Reference

An abtraction to map from a LUIS EntityRecommendation to specific CLR types. More...

Inheritance diagram for Microsoft.Bot.Builder.Luis.IEntityToType:

Public Member Functions

bool TryMapToDateRanges (DateTime now, IEnumerable< EntityRecommendation > entities, out IEnumerable< Range< DateTime >> ranges)
 Try to map LUIS EntityRecommendation instances to a list of DateTime ranges, relative to now. More...
 
bool TryMapToTimeSpan (DateTime now, IEnumerable< EntityRecommendation > entities, out TimeSpan span)
 Try to map LUIS EntityRecommendation instances to a TimeSpan, relative to now. More...
 

Detailed Description

An abtraction to map from a LUIS EntityRecommendation to specific CLR types.

Definition at line 49 of file EntityToType.cs.

Member Function Documentation

bool Microsoft.Bot.Builder.Luis.IEntityToType.TryMapToDateRanges ( DateTime  now,
IEnumerable< EntityRecommendation entities,
out IEnumerable< Range< DateTime >>  ranges 
)

Try to map LUIS EntityRecommendation instances to a list of DateTime ranges, relative to now.

Parameters
nowThe now reference DateTime.
entitiesA list of possibly-relevant EntityRecommendation instances.
rangesThe output DateTime ranges.
Returns
True if the mapping may have been successful, false otherwise.
bool Microsoft.Bot.Builder.Luis.IEntityToType.TryMapToTimeSpan ( DateTime  now,
IEnumerable< EntityRecommendation entities,
out TimeSpan  span 
)

Try to map LUIS EntityRecommendation instances to a TimeSpan, relative to now.

Parameters
nowThe now reference DateTime.
entitiesA list of possibly-relevant EntityRecommendation instances.
spanThe output TimeSpan.
Returns
True if the mapping may have been successful, false otherwise.

The documentation for this interface was generated from the following file: