namespace zero.Core.Entities { /// /// Represents an item in a tree /// public class TreeItem { /// /// Id of the item /// public string Id { get; set; } /// /// Parent id of the item /// public string ParentId { get; set; } /// /// Sort order /// public int Sort { get; set; } /// /// Name of the item /// public string Name { get; set; } /// /// Displays a description on hover /// public string Description { get; set; } /// /// Icon to display alongside the name /// public string Icon { get; set; } /// /// Whether this item is open in case it contains children /// public bool IsOpen { get; set; } /// /// Displays a small icon (with hover text) next to the main item icon /// public TreeItemModifier Modifier { get; set; } /// /// Whether this item has children /// public bool HasChildren { get; set; } } /// /// The modifier displays a small icon (with hover text) next to the main item icon /// public class TreeItemModifier { /// /// Name of the modifier /// public string Name { get; set; } /// /// Icon to display /// public string Icon { get; set; } } }