public ResponseAlexa Action(Request requestBase) { var response = new ResponseAlexa(); response.Speak("Welcome to Mc Donald\'s, How can I help you?"); return(response); }
public ResponseAlexa Action(Request requestBase) { var response = new ResponseAlexa(); response.Speak("Sorry, Can you repeat please?"); return(response); }
public ResponseAlexa Action(Request requestBase) { var request = (RequestIntent)requestBase; if (request.IsExit()) { return(new ChatEnd().Action(requestBase)); } var intent = request.Intent; var item = intent.GetOrderItem(); var response = new ResponseAlexa(); response.Speak($"Ok, {item.Quantity} {item.Name}, anything else?"); if (!item.IsValid()) { response.Speak("Sorry, Can you repeat please?"); } return(response); }