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/DebugSession.cs | 75 +++++++++++++++++++++++++++++++++++++
1 files changed, 75 insertions(+), 0 deletions(-)
diff --git a/Plugin.DeviceDebug/Entity/DebugSession.cs b/Plugin.DeviceDebug/Entity/DebugSession.cs
new file mode 100644
index 0000000..2f2d582
--- /dev/null
+++ b/Plugin.DeviceDebug/Entity/DebugSession.cs
@@ -0,0 +1,75 @@
+using System;
+using CommunityToolkit.Mvvm.ComponentModel;
+
+namespace Plugin.DeviceDebug.Entity
+{
+ /// <summary>
+ /// 璋冭瘯浼氳瘽鐘舵�佹灇涓�
+ /// </summary>
+ public enum DebugSessionState
+ {
+ /// <summary>鍙妯″紡锛堥粯璁わ級</summary>
+ ReadOnly = 0,
+ /// <summary>姝e湪鐢宠缁存姢鏉冮檺</summary>
+ AcquiringMaintenance = 1,
+ /// <summary>缁存姢妯″紡婵�娲�</summary>
+ MaintenanceActive = 2,
+ /// <summary>姝e湪鍏抽棴</summary>
+ Closing = 3,
+ /// <summary>宸插叧闂�</summary>
+ Closed = 4,
+ /// <summary>鏁呴殰</summary>
+ Faulted = 5,
+ /// <summary>闇�瑕佹仮澶�</summary>
+ RecoveryRequired = 6
+ }
+
+ /// <summary>
+ /// 璋冭瘯浼氳瘽瀹炰綋
+ /// </summary>
+ public partial class DebugSession : ObservableObject
+ {
+ public DebugSession()
+ {
+ SessionId = Guid.NewGuid().ToString();
+ CreatedAt = DateTime.Now;
+ State = DebugSessionState.ReadOnly;
+ }
+
+ /// <summary>浼氳瘽ID锛堜富閿級</summary>
+ [ObservableProperty]
+ private string _sessionId = string.Empty;
+
+ /// <summary>璁惧ID</summary>
+ [ObservableProperty]
+ private string _deviceId = string.Empty;
+
+ /// <summary>鎿嶄綔鍛業D</summary>
+ [ObservableProperty]
+ private string _operatorId = string.Empty;
+
+ /// <summary>鎿嶄綔鍛樺悕绉�</summary>
+ [ObservableProperty]
+ private string _operatorName = string.Empty;
+
+ /// <summary>鐢熸晥鐗堟湰</summary>
+ [ObservableProperty]
+ private string _effectiveVersion = string.Empty;
+
+ /// <summary>浼氳瘽鐘舵��</summary>
+ [ObservableProperty]
+ private DebugSessionState _state = DebugSessionState.ReadOnly;
+
+ /// <summary>棰勭害寮曠敤</summary>
+ [ObservableProperty]
+ private string _reservationRef = string.Empty;
+
+ /// <summary>鍒涘缓鏃堕棿</summary>
+ [ObservableProperty]
+ private DateTime _createdAt = DateTime.Now;
+
+ /// <summary>鍏抽棴鏃堕棿</summary>
+ [ObservableProperty]
+ private DateTime? _closedAt;
+ }
+}
--
Gitblit v1.9.1