public static string SomeHandler(LuisResult result) { var airLine = result.GetEntity <Airline>().First(); var origin = result.GetEntity <Destination>().First(); var composite = result.GetCompositeEntity <TicketsOrders>().FirstOrDefault(); var response = $"You are going to take a {airLine.Value} plane from {origin.Value} in {composite.Class.Value} class"; return(response); }
public static string DestinationHandler(LuisResult result) { var destination = result.GetEntity <Destination>().First(); var response = $"Half way to : {destination.Value}"; return(response); }
public static string HandlerWithAirlines(LuisResult result) { var airLine = result.GetEntity <Airline>().First(); var response = $"The airline you have selected is : {airLine}"; return(response); }