private UssdMenu(string header, string footer) { Header = header; Footer = footer; Items = new List <UssdMenuItem>(); ZeroItem = null; }
private UssdMenu(string header, string footer) { Header = header; Footer = footer; Items = new List<UssdMenuItem>(); ZeroItem = null; }
/// <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); }
/// <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; }