pschelpdesk/HetznerServer/Models/Plugin.cs
2024-11-18 19:53:49 +01:00

36 lines
742 B
C#

using Material.Icons;
using ReactiveUI;
namespace PSCHelpdesk.Plugins.HetznerServer.Models;
public class Plugin : ReactiveObject
{
public string Title { get; set; }
private bool _installed;
public bool Installed
{
get => _installed;
set
{
this.RaiseAndSetIfChanged(ref _installed, value);
}
}
private MaterialIconKind _icon;
public MaterialIconKind Icon
{
get => Installed==true? MaterialIconKind.Check:MaterialIconKind.Delete;
set => this.RaiseAndSetIfChanged(ref _icon, value);
}
public string Uuid { get; set; }
public Plugin()
{
Installed = false;
Icon = MaterialIconKind.Remove;
}
}