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); }
public DesiredTimeParser(UserTime userTime) { _userTime = userTime; }