Beispiel #1
0
 public async Task Issue(IDialogContext context, LuisResult result)
 {
     if (result.Entities.Count == 0)
     {
         DialogBase.PromptPaymentMode(context, this.ResumeAfterCardIssue);
     }
     else
     {
         CheckCardDialog checkDialog = new CheckCardDialog();
         if (result.IsAbroad())
         {
             await context.PostAsync("Pas encore implementée");
         }
         else if (result.IsIssueDomesticWithDrawal()) //j'ai un problème de retrait domestique
         {
             checkDialog.MakeCheckCardFormDialog(DialogBase.PromptHowMuchMoney);
         }
         else if (CheckStatus.IsIssueTypeWithdrawal(result)) //J'ai un problème de retrait
         {
             checkDialog.MakeCheckCardFormDialog(DialogBase.PromptDomesticOrAbroad);
         }
         else if (CheckStatus.IsPayModeCard(result))               //J'ai un problème
         {
             checkDialog.MakeCheckCardFormDialog(DialogBase.PromptWithdrawalOrPayment);
         }
         context.Call(checkDialog, ResumeAfterCardIssue);
     }
 }