/// <summary> /// Returns true if user message is a pre-defined feedback request. /// </summary> public static bool IsFeedbackRequest(string userMessage) { return(MiscService.CompareTwoStrings(userMessage, BotConstants.PreDefinedActions.Feedback)); }
/// <summary> /// Returns true if user message is a pre-defined top N recipes request. /// </summary> public static bool IsTopNRecipesRequest(string userMessage) { return(MiscService.CompareTwoStrings(userMessage, BotConstants.PreDefinedActions.TopNRecipes)); }
/// <summary> /// Returns true if user message is a pre-defined get started request. /// </summary> public static bool IsHelpOrGetStartedRequest(string userMessage) { return(MiscService.CompareTwoStrings(userMessage, BotConstants.PreDefinedActions.GetStarted) || MiscService.CompareTwoStrings(userMessage, BotConstants.PreDefinedActions.Help)); }
/// <summary> /// Returns true if user message is a pre-defined random recipe request. /// </summary> public static bool IsRandomRecipeRequest(string userMessage) { return(MiscService.CompareTwoStrings(userMessage, BotConstants.PreDefinedActions.NewRandomRecipe)); }