You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using hass_workstation_service.Communication.InterProcesCommunication.Models;
|
|
|
|
|
using ReactiveUI;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace UserInterface.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class CommandSettingsViewModel : ViewModelBase
|
|
|
|
|
{
|
|
|
|
|
private ICollection<CommandViewModel> _configuredCommands;
|
|
|
|
|
|
|
|
|
|
public ICollection<CommandViewModel> ConfiguredCommands
|
|
|
|
|
{
|
|
|
|
|
get => _configuredCommands;
|
|
|
|
|
set => this.RaiseAndSetIfChanged(ref _configuredCommands, value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void TriggerUpdate()
|
|
|
|
|
{
|
|
|
|
|
this.RaisePropertyChanged();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class CommandViewModel : ViewModelBase
|
|
|
|
|
{
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
public AvailableCommands Type { get; set; }
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|