Ms_ Dev

Ms_ Dev

  • NA
  • 236
  • 91.6k

Microsoft Bot response matching

Mar 30 2017 3:39 AM
Hi,
I have this following code from Microsoft bot framework.
  1. public enum BalanceOptions  
  2.     {  
  3.         Available,  
  4.         Current,  
  5.         Pending,  
  6.         Statement  
  7.     }  
  8.   
  9.     [Serializable]  
  10.     public class Balance  
  11.     {  
  12.         public BalanceOptions? Type_of_Balance;  
  13.         public DateTime? ForBalance;  
  14.   
  15.         public static  IForm<Balance> BuildForm()  
  16.         {  
  17.   
  18.             return new FormBuilder<Balance>()  
  19.                 //.Message("Welcome to eZCard, My name is Doe !")  
  20.                 .Build();  
  21.             
  22.         }  
  23.     }  
 I want to check the options user selected in the Function BuildForm() and hardcode the response. As, if user selected Pending then i will give 45$, something like this.
 
Please help.