I have this following code from Microsoft bot framework.
- public enum BalanceOptions
- {
- Available,
- Current,
- Pending,
- Statement
- }
-
- [Serializable]
- public class Balance
- {
- public BalanceOptions? Type_of_Balance;
- public DateTime? ForBalance;
-
- public static IForm<Balance> BuildForm()
- {
-
- return new FormBuilder<Balance>()
-
- .Build();
-
- }
- }
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.