2024-04-18 01:44:37 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
2025-02-16 11:35:43 +01:00
|
|
|
|
namespace Wino.Core.Domain.Models.Menus;
|
|
|
|
|
|
|
|
|
|
|
|
public class MenuOperationItemBase<TOperation> where TOperation : Enum
|
2024-04-18 01:44:37 +02:00
|
|
|
|
{
|
2025-02-16 11:35:43 +01:00
|
|
|
|
public MenuOperationItemBase(TOperation operation, bool isEnabled)
|
2024-04-18 01:44:37 +02:00
|
|
|
|
{
|
2025-02-16 11:35:43 +01:00
|
|
|
|
Operation = operation;
|
|
|
|
|
|
IsEnabled = isEnabled;
|
|
|
|
|
|
Identifier = operation.ToString();
|
2024-04-18 01:44:37 +02:00
|
|
|
|
}
|
2025-02-16 11:35:43 +01:00
|
|
|
|
|
|
|
|
|
|
public TOperation Operation { get; set; }
|
|
|
|
|
|
public string Identifier { get; set; }
|
|
|
|
|
|
public bool IsEnabled { get; set; }
|
2024-04-18 01:44:37 +02:00
|
|
|
|
}
|