2025-06-20 18:53:29 +08:00
|
|
|
|
using PMSWPF.Enums;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PMSWPF.Models;
|
|
|
|
|
|
|
|
|
|
|
|
public class DataVariable
|
|
|
|
|
|
{
|
2025-06-23 17:01:06 +08:00
|
|
|
|
public int Id { get; set; }
|
2025-06-20 18:53:29 +08:00
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
public string NodeId { get; set; }
|
|
|
|
|
|
public ProtocolType ProtocolType { get; set; }
|
|
|
|
|
|
public string DataType { get; set; }
|
|
|
|
|
|
public List<Mqtt> Mqtts { get; set; }
|
|
|
|
|
|
public string DataValue { get; set; }
|
|
|
|
|
|
public string DisplayValue { get; set; }
|
|
|
|
|
|
public DateTime UpdateTime { get; set; }
|
|
|
|
|
|
public User UpdateUser { get; set; }
|
|
|
|
|
|
public string Converstion { get; set; }
|
|
|
|
|
|
public bool IsDeleted { get; set; }
|
2025-06-23 17:01:06 +08:00
|
|
|
|
public bool IsActive { get; set; }
|
2025-06-20 18:53:29 +08:00
|
|
|
|
public bool IsSave { get; set; }
|
2025-06-23 17:01:06 +08:00
|
|
|
|
public double SaveRange { get; set; }
|
2025-06-20 18:53:29 +08:00
|
|
|
|
public bool IsAlarm { get; set; }
|
2025-06-23 17:01:06 +08:00
|
|
|
|
public double AlarmMin { get; set; }
|
|
|
|
|
|
public double AlarmMax { get; set; }
|
2025-06-20 18:53:29 +08:00
|
|
|
|
public SignalType SignalType { get; set; }
|
|
|
|
|
|
}
|