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.
34 lines
1.2 KiB
34 lines
1.2 KiB
using hass_workstation_service.Communication.InterProcesCommunication.Models;
|
|
using ReactiveUI;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace UserInterface.ViewModels
|
|
{
|
|
public class AddSensorViewModel : ViewModelBase
|
|
{
|
|
private AvailableSensors selectedType;
|
|
private string description;
|
|
private bool showQueryInput;
|
|
|
|
public string Description { get => description; set => this.RaiseAndSetIfChanged(ref description, value); }
|
|
public bool ShowQueryInput { get => showQueryInput; set => this.RaiseAndSetIfChanged(ref showQueryInput, value); }
|
|
|
|
private string moreInfoLink;
|
|
private int updateInterval;
|
|
|
|
public string MoreInfoLink
|
|
{
|
|
get { return moreInfoLink; }
|
|
set { this.RaiseAndSetIfChanged(ref moreInfoLink, value); }
|
|
}
|
|
|
|
|
|
public AvailableSensors SelectedType { get => selectedType; set => this.RaiseAndSetIfChanged(ref selectedType, value); }
|
|
public string Name { get; set; }
|
|
public string Query { get; set; }
|
|
public int UpdateInterval { get => updateInterval; set => this.RaiseAndSetIfChanged(ref updateInterval, value); }
|
|
}
|
|
}
|