Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public static string DestinationHandler(LuisResult result)
        {
            var destination = result.GetEntity <Destination>().First();

            var response = $"Half way to : {destination.Value}";

            return(response);
        }
Esempio n. 3
0
        public static string HandlerWithAirlines(LuisResult result)
        {
            var airLine = result.GetEntity <Airline>().First();

            var response = $"The airline you have selected is : {airLine}";

            return(response);
        }