/// <summary>Recognizes the double in range.</summary>
        /// <param name="recognizer"><see cref="IPromptRecognizer"/></param>
        /// <param name="message">Message context.</param>
        /// <param name="max">Maximum value.</param>
        /// <param name="min">Minimun value.</param>
        public static IEnumerable <RecognizeEntity <double> > RecognizeDoubleInRange(this IPromptRecognizer recognizer, IMessageActivity message, double?min, double?max)
        {
            var entities = recognizer.RecognizeNumbers(message, new PromptRecognizeNumbersOptions {
                IntegerOnly = false, MinValue = min, MaxValue = max
            });

            return(entities.Select(x => new RecognizeEntity <double> {
                Entity = Convert.ToDouble(x.Entity), Score = x.Score
            }));
        }
        /// <summary>Recognizer for a Int64 number.</summary>
        /// <param name="recognizer"><see cref="IPromptRecognizer"/></param>
        /// <param name="message">Message context.</param>
        public static IEnumerable <RecognizeEntity <Int64> > RecognizeInteger(this IPromptRecognizer recognizer, IMessageActivity message)
        {
            var entities = recognizer.RecognizeNumbers(message, new PromptRecognizeNumbersOptions {
                IntegerOnly = true
            });

            return(entities.Select(x => new RecognizeEntity <Int64> {
                Entity = Convert.ToInt64(x.Entity), Score = x.Score
            }));
        }
 /// <summary>Recognizer for a double number.</summary>
 /// <param name="recognizer"><see cref="IPromptRecognizer"/></param>
 /// <param name="message">Message context.</param>
 public static IEnumerable <RecognizeEntity <double> > RecognizeDouble(this IPromptRecognizer recognizer, IMessageActivity message)
 {
     return(recognizer.RecognizeNumbers(message, new PromptRecognizeNumbersOptions {
         IntegerOnly = false
     }));
 }