2025-07-02 12:01:20 +08:00
|
|
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
|
|
using PMSWPF.Enums;
|
2025-06-20 18:53:29 +08:00
|
|
|
|
|
|
|
|
|
|
namespace PMSWPF.Models;
|
|
|
|
|
|
|
2025-07-02 12:01:20 +08:00
|
|
|
|
public partial class VariableTable:ObservableObject
|
2025-06-20 18:53:29 +08:00
|
|
|
|
{
|
2025-06-23 17:01:06 +08:00
|
|
|
|
public int Id { get; set; }
|
2025-07-02 12:01:20 +08:00
|
|
|
|
[ObservableProperty] private string name;
|
|
|
|
|
|
[ObservableProperty] private string description;
|
|
|
|
|
|
|
2025-06-20 18:53:29 +08:00
|
|
|
|
public ProtocolType ProtocolType { get; set; }
|
|
|
|
|
|
public List<DataVariable> DataVariables { get; set; }
|
2025-07-02 18:33:08 +08:00
|
|
|
|
[ObservableProperty]
|
|
|
|
|
|
private bool isActive;
|
2025-07-02 12:01:20 +08:00
|
|
|
|
public int? DeviceId { get; set; }
|
2025-06-30 13:06:51 +08:00
|
|
|
|
public Device? Device { get; set; }
|
2025-06-20 18:53:29 +08:00
|
|
|
|
}
|