Too much to name... but damn, it got where we are needed
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Hyperbar.Windows.Primary;
|
||||
|
||||
[JsonDerivedType(typeof(KeyAcceleratorCommandConfiguration), typeDiscriminator: "KeyAcceleratorCommand")]
|
||||
[JsonDerivedType(typeof(ProcessCommandConfiguration), typeDiscriminator: "ProcessCommand")]
|
||||
public class PrimaryCommandConfiguration
|
||||
{
|
||||
public required Guid Id { get; set; }
|
||||
|
||||
public required string Icon { get; set; }
|
||||
|
||||
public required string Text { get; set; }
|
||||
|
||||
public List<PrimaryCommandConfiguration>? Commands { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user