Пример #1
0
        public static string GetTrack(this RecognizerResult recognizerResult)
        {
            var luisResponse = new SessionizeLuisModel();

            luisResponse.Convert(recognizerResult);

            string name = luisResponse.Entities.track?[0][0];

            return(name);
        }
Пример #2
0
        public static DateTime?GetDateTime(this RecognizerResult recognizerResult)
        {
            var luisResponse = new SessionizeLuisModel();

            luisResponse.Convert(recognizerResult);

            DateTime dateTime;

            if (TryFindDateTime(luisResponse, out dateTime))
            {
                return(dateTime);
            }
            return(null);
        }