コード例 #1
0
 private UssdMenu(string header, string footer)
 {
     Header   = header;
     Footer   = footer;
     Items    = new List <UssdMenuItem>();
     ZeroItem = null;
 }
コード例 #2
0
 private UssdMenu(string header, string footer)
 {
     Header = header;
     Footer = footer;
     Items = new List<UssdMenuItem>();
     ZeroItem = null;
 }
コード例 #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);
 }
コード例 #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;
 }