private void getMenuItemsFromProviders(Window window, USSDRequest request, USSDSession <object> session) { List <MenuItemsProvider> menuItemsProviders = window.getMenuItemsProvider(); foreach (MenuItemsProvider provider in menuItemsProviders) { List <MenuItem> menuItems = provider.getMenuItems(window.getId(), request, session); foreach (MenuItem menu in menuItems) { window.getMenuItems().Add(menu); } } }
public void addWindow(Window window) { this.windows[window.getId()] = window; }
public void storeWindow(Window window, USSDRequest request, USSDSession <Object> session) { items[window.getId()] = window; }