Exemplo n.º 1
0
 private UssdMenu(string header, string footer)
 {
     Header   = header;
     Footer   = footer;
     Items    = new List <UssdMenuItem>();
     ZeroItem = null;
 }
Exemplo n.º 2
0
 private UssdMenu(string header, string footer)
 {
     Header = header;
     Footer = footer;
     Items = new List<UssdMenuItem>();
     ZeroItem = null;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Add an item to be rendered as last 0 option on menu.
 /// </summary>
 /// <param name="display"></param>
 /// <param name="action"></param>
 /// <param name="controller"></param>
 /// <returns></returns>
 public UssdMenu AddZeroItem(string display, string action, string controller = null)
 {
     ZeroItem = new UssdMenuItem()
     {
         Display    = display,
         Action     = action,
         Controller = controller,
     };
     return(this);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Add an item to be rendered as last 0 option on menu.
 /// </summary>
 /// <param name="display"></param>
 /// <param name="action"></param>
 /// <param name="controller"></param>
 /// <returns></returns>
 public UssdMenu AddZeroItem(string display, string action, string controller = null)
 {
     ZeroItem = new UssdMenuItem()
     {
         Display = display,
         Action = action,
         Controller = controller,
     };
     return this;
 }