using System.Collections.Generic;
using Abp.Localization;
namespace Abp.Application.Navigation
{
///
/// Represents a menu shown to the user.
///
public class UserMenu
{
///
/// Unique name of the menu in the application.
///
public string Name { get; set; }
///
/// Display name of the menu.
///
public string DisplayName { get; set; }
///
/// A custom object related to this menu item.
///
public object CustomData { get; set; }
///
/// Menu items (first level).
///
public IList Items { get; set; }
///
/// Creates a new object.
///
public UserMenu()
{
}
///
/// Creates a new object from given .
///
internal UserMenu(MenuDefinition menuDefinition, ILocalizationContext localizationContext)
{
Name = menuDefinition.Name;
DisplayName = menuDefinition.DisplayName.Localize(localizationContext);
CustomData = menuDefinition.CustomData;
Items = new List();
}
}
}