From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点

---
 Plugin.DeviceDebug/Entity/DeviceRuntimeStatus.cs |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/Plugin.DeviceDebug/Entity/DeviceRuntimeStatus.cs b/Plugin.DeviceDebug/Entity/DeviceRuntimeStatus.cs
new file mode 100644
index 0000000..269a6a4
--- /dev/null
+++ b/Plugin.DeviceDebug/Entity/DeviceRuntimeStatus.cs
@@ -0,0 +1,44 @@
+using System;
+using CommunityToolkit.Mvvm.ComponentModel;
+
+namespace Plugin.DeviceDebug.Entity
+{
+    public enum DeviceConnectionState
+    {
+        Connected,
+        Disconnected,
+        Connecting,
+        Error
+    }
+
+    public enum DeviceHealth
+    {
+        Healthy,
+        Degraded,
+        Fault
+    }
+
+    public enum ReservationStatus
+    {
+        Available,
+        ProductionReserved,
+        MaintenanceReserved,
+        RecoveryRequired
+    }
+
+    /// <summary>
+    /// 璁惧杩愯鐘舵�侊紙鍐呭瓨瀵硅薄锛屼笉鎸佷箙鍖栵級
+    /// </summary>
+    public partial class DeviceRuntimeStatus : ObservableObject
+    {
+        [ObservableProperty] private string _deviceId = string.Empty;
+        [ObservableProperty] private DeviceConnectionState _connectionState = DeviceConnectionState.Disconnected;
+        [ObservableProperty] private DeviceHealth _health = DeviceHealth.Healthy;
+        [ObservableProperty] private string _lastError = string.Empty;
+        [ObservableProperty] private DateTime? _lastErrorTime;
+        [ObservableProperty] private ReservationStatus _reservationStatus = ReservationStatus.Available;
+        [ObservableProperty] private string _effectiveVersion = string.Empty;
+        [ObservableProperty] private int _reconnectCount;
+        [ObservableProperty] private double _communicationLatencyMs;
+    }
+}

--
Gitblit v1.9.1