2025-07-21 14:35:17 +08:00
|
|
|
|
using DMS.Core.Enums;
|
|
|
|
|
|
using System.Collections.Generic;
|
2025-06-20 18:53:29 +08:00
|
|
|
|
|
2025-07-19 09:25:01 +08:00
|
|
|
|
namespace DMS.Core.Models;
|
2025-06-20 18:53:29 +08:00
|
|
|
|
|
2025-07-03 13:17:25 +08:00
|
|
|
|
/// <summary>
|
2025-07-21 14:35:17 +08:00
|
|
|
|
/// 组织和管理一组相关的变量。
|
2025-07-03 13:17:25 +08:00
|
|
|
|
/// </summary>
|
2025-07-21 14:35:17 +08:00
|
|
|
|
public class VariableTable
|
2025-06-20 18:53:29 +08:00
|
|
|
|
{
|
2025-07-03 13:17:25 +08:00
|
|
|
|
public int Id { get; set; }
|
2025-07-19 09:25:01 +08:00
|
|
|
|
public string Name { get; set; }
|
2025-07-21 14:35:17 +08:00
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
public bool IsActive { get; set; } // 是否启用
|
|
|
|
|
|
public int DeviceId { get; set; }
|
|
|
|
|
|
public Device Device { get; set; }
|
|
|
|
|
|
public ProtocolType Protocol { get; set; } // 通讯协议
|
|
|
|
|
|
public List<Variable> Variables { get; set; } = new();
|
2025-06-20 18:53:29 +08:00
|
|
|
|
}
|