Esempio n. 1
0
 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()
     });
 }
Esempio n. 2
0
 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()
     });
 }