From f0676709c0f665168e4c3ce1925e2593c7f6b9a8 Mon Sep 17 00:00:00 2001 From: xiyunfei Date: Sat, 23 Sep 2023 10:43:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E3=80=81=E8=AE=BE=E5=A4=87=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E3=80=81=E8=AE=BE=E5=A4=87=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E7=A6=81=E7=94=A8=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NewLife.IoT/Models/DeviceModel.cs | 3 +++ NewLife.IoT/ThingModels/DevicePropertyModel.cs | 8 ++------ NewLife.IoT/ThingModels/EventModel.cs | 3 +++ NewLife.IoT/ThingModels/IPoint.cs | 4 +--- NewLife.IoT/ThingModels/PropertyModel.cs | 3 +++ 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/NewLife.IoT/Models/DeviceModel.cs b/NewLife.IoT/Models/DeviceModel.cs index 8eed151..a7dfeee 100644 --- a/NewLife.IoT/Models/DeviceModel.cs +++ b/NewLife.IoT/Models/DeviceModel.cs @@ -29,4 +29,7 @@ public class DeviceModel : IDeviceInfo /// 更新时间。用于判断数据变化 public DateTime UpdateTime { get; set; } + + /// 是否启用 true 启用 false 停用 + public Boolean IsEnable { get; set; } } \ No newline at end of file diff --git a/NewLife.IoT/ThingModels/DevicePropertyModel.cs b/NewLife.IoT/ThingModels/DevicePropertyModel.cs index a8dcc54..9b5cd85 100644 --- a/NewLife.IoT/ThingModels/DevicePropertyModel.cs +++ b/NewLife.IoT/ThingModels/DevicePropertyModel.cs @@ -1,12 +1,8 @@ namespace NewLife.IoT.ThingModels; -/// -/// 设备属性模型 -/// +/// 设备属性模型 public class DevicePropertyModel : PropertyModel { - /// - /// 设备编码 - /// + /// 设备编码 public String DeviceCode { get; set; } } diff --git a/NewLife.IoT/ThingModels/EventModel.cs b/NewLife.IoT/ThingModels/EventModel.cs index 7d3b97e..3f7a3c5 100644 --- a/NewLife.IoT/ThingModels/EventModel.cs +++ b/NewLife.IoT/ThingModels/EventModel.cs @@ -14,4 +14,7 @@ public class EventModel /// 内容。事件详情 public String Remark { get; set; } + + /// 是否启用 + public Boolean IsEnable { get; set; } } \ No newline at end of file diff --git a/NewLife.IoT/ThingModels/IPoint.cs b/NewLife.IoT/ThingModels/IPoint.cs index 509a390..66324f6 100644 --- a/NewLife.IoT/ThingModels/IPoint.cs +++ b/NewLife.IoT/ThingModels/IPoint.cs @@ -20,9 +20,7 @@ public interface IPoint Int32 Length { get; set; } } -/// -/// 点位扩展 -/// +/// 点位扩展 public static class PointHelper { /// diff --git a/NewLife.IoT/ThingModels/PropertyModel.cs b/NewLife.IoT/ThingModels/PropertyModel.cs index cf61ef0..f66f257 100644 --- a/NewLife.IoT/ThingModels/PropertyModel.cs +++ b/NewLife.IoT/ThingModels/PropertyModel.cs @@ -8,4 +8,7 @@ public class PropertyModel /// 数值 public Object Value { get; set; } + + /// 启用状态 true 启用 false 停用 + public Boolean IsEnable { get; set; } } \ No newline at end of file