Example #1
0
 protected LexResponse ElicitSlot(IDictionary <string, string> sessionAttributes, string intentName, IDictionary <string, string> slots, string slotToElicit, LexResponse.LexMessage message)
 {
     return(new LexResponse
     {
         SessionAttributes = sessionAttributes,
         DialogAction = new LexResponse.LexDialogAction
         {
             Type = "ElicitSlot",
             IntentName = intentName,
             Slots = slots,
             SlotToElicit = slotToElicit,
             Message = message
         }
     });
 }
Example #2
0
 protected LexResponse ConfirmIntent(IDictionary <string, string> sessionAttributes, string intentName, IDictionary <string, string> slots, LexResponse.LexMessage message)
 {
     return(new LexResponse
     {
         SessionAttributes = sessionAttributes,
         DialogAction = new LexResponse.LexDialogAction
         {
             Type = "ConfirmIntent",
             IntentName = intentName,
             Slots = slots,
             Message = message
         }
     });
 }
Example #3
0
 protected LexResponse Close(IDictionary <string, string> sessionAttributes, string fulfillmentState, LexResponse.LexMessage message)
 {
     return(new LexResponse
     {
         SessionAttributes = sessionAttributes,
         DialogAction = new LexResponse.LexDialogAction
         {
             Type = "Close",
             FulfillmentState = fulfillmentState,
             Message = message
         }
     });
 }