예제 #1
0
        public ParsedMessage Parse(string text, UserTime userTime)
        {
            var originalText = text;

            text = NormalizeText(text);

            var timeHelper       = new DesiredTimeParser(userTime);
            var userReminderTime = timeHelper.GetDesiredNotificationUserTime(text);

            var result = new ParsedMessage()
            {
                ReminderText     = originalText,
                UserReminderTime = userReminderTime,
            };

            return(result);
        }
예제 #2
0
 public DesiredTimeParser(UserTime userTime)
 {
     _userTime = userTime;
 }