public static void AddSystem(this SpeechletRequestParser parser) { parser.AddInterface(SystemRequest.TypeName, (subtype, json) => { switch (subtype) { case "ExceptionEncountered": return(new SystemExceptionEncounteredRequest(subtype, json)); } return(null); }); }
public static void AddAudioPlayer(this SpeechletRequestParser parser) { parser.AddInterface(AudioPlayerRequest.TypeName, (subtype, json) => { switch (subtype) { case "PlaybackFailed": return(new AudioPlayerPlaybackFailedRequest(subtype, json)); default: return(new AudioPlayerRequest(subtype, json)); } }); }
public static void AddStandard(this SpeechletRequestParser parser) { parser.AddInterface(string.Empty, (subtype, json) => { switch (subtype) { case "LaunchRequest": return(new LaunchRequest(json)); case "IntentRequest": return(new IntentRequest(json)); case "SessionEndedRequest": return(new SessionEndedRequest(json)); } return(null); }); }
public static void AddDisplay(this SpeechletRequestParser parser) { parser.AddInterface(DisplayRequest.TypeName, (subtype, json) => new DisplayRequest(subtype, json)); }
public static void AddPlaybackController(this SpeechletRequestParser parser) { parser.AddInterface(PlaybackControllerRequest.TypeName, (subtype, json) => new PlaybackControllerRequest(subtype, json)); }