Example #1
0
 /// <summary>
 /// This handle method looks for our main "Keys", those being Canvas, Notes, or Help and directs the user to the specific Controller for further "handling"
 /// </summary>
 /// <param name="text">The input by the user</param>
 /// <returns> a List of Strings which are retrieved from the methods being called which will be sent back to the bot to send to the user </returns>
 public List <string> Handle(string text)
 {
     if (text.Contains("canvas"))
     {
         return(_canvas.CanvasTimeDecider(text));
     }
     else if (text.Contains("todo"))
     {
         return(_notes.NoteTimeDecider(text));
     }
     else if (text.Contains("help"))
     {
         return(_help.Helper(text));
     }
     else
     {
         return(_help.HandlerError(text));
     }
 }