public static ISpeechletResponseBuilder DialogConfirmIntent(this ISpeechletResponseBuilder builder, Intent updatedIntent = null, string speech = null) { return(string.IsNullOrEmpty(speech) ? builder.DialogDelegate(updatedIntent) : builder.WithDialogDirective <DialogConfirmIntentDirective>(updatedIntent).Say(speech)); }
public static ISpeechletResponseBuilder DialogElicitSlot(this ISpeechletResponseBuilder builder, string slotName, Intent updatedIntent = null, string speech = null) { return(string.IsNullOrEmpty(speech) ? builder.DialogDelegate(updatedIntent) : builder.WithDialogDirective <DialogElicitSlotDirective>(updatedIntent, x => x.SlotToElicit = slotName).Say(speech)); }