28 lines
813 B
C#
28 lines
813 B
C#
namespace WeatherForecast.Models {
|
|
public class MenuItemModel {
|
|
public string? Icon { get; set; }
|
|
public string? Title { get; private set; }
|
|
public string? Target { get; private set; }
|
|
public List<MenuItemModel>? ChildItems { get; private set; }
|
|
|
|
public MenuItemModel(string title, string target) {
|
|
Title = title;
|
|
Target = target;
|
|
}
|
|
|
|
public MenuItemModel(string title, string target, List<MenuItemModel> childItems) : this(title, target) {
|
|
ChildItems = childItems;
|
|
}
|
|
|
|
public MenuItemModel(string icon, string title, string target): this(title, target) {
|
|
Icon = icon;
|
|
}
|
|
|
|
public MenuItemModel(string icon, string title, string target, List<MenuItemModel> childItems) : this(icon, title, target) {
|
|
ChildItems = childItems;
|
|
}
|
|
|
|
|
|
}
|
|
}
|