コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
 /// <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));
 }
コード例 #4
0
 /// <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));
 }