Exemple #1
0
        public async Task <UssdResponse> Start()
        {
            var menu = UssdMenu.New("Welcome", Environment.NewLine + "by Sidekick")
                       .AddItem("Greet me", "GreetingForm")
                       .AddItem("What's the time?", "Time")
                       .AddZeroItem("Exit", "Exit");

            return(await RenderMenu(menu));
        }
Exemple #2
0
        public async Task <UssdResponse> Start()
        {
            var menu = UssdMenu.New();

            menu.Header = "Welcome";
            menu.AddItem("Greet me", "GreetingForm")
            .AddItem("What's the time?", "Time")
            .AddZeroItem("Exit", "Exit");
            menu.Footer = Environment.NewLine + "by SMSGH";
            return(await RenderMenu(menu));
        }