public static LexLambdaResponseTypeElicitIntent CustomResponseElicitIntent(string message, LexSessionAttributes sessionAttributes = null) { return(new LexLambdaResponseTypeElicitIntent { DialogAction = new LexLambdaResponseDialogActionTypeElicitIntent { Message = new LexLambdaResponseMessage { Content = message, ContentType = "PlainText" }, Type = "ElicitIntent" }, SessionAttributes = sessionAttributes == null ? new Dictionary <string, string>() : sessionAttributes.ToDictionary() }); }
public static LexLambdaResponseTypeClose CustomResponseClose(string message, LexSessionAttributes sessionAttributes = null, string fulfillment = "Fulfilled") { return(new LexLambdaResponseTypeClose { DialogAction = new LexLambdaResponseDialogActionTypeClose { Message = new LexLambdaResponseMessage { Content = message, ContentType = "PlainText" }, Type = "Close", FulfillmentState = fulfillment }, SessionAttributes = sessionAttributes == null ? new Dictionary <string, string>() : sessionAttributes.ToDictionary() }); }