From 8c6fd742db249ad4cc819cf041eb98d880a3ef73 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期四, 02 一月 2025 15:09:07 +0800 Subject: [PATCH] 1 --- WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/IDevice.cs | 34 +++++++++++++++++++++------------- 1 files changed, 21 insertions(+), 13 deletions(-) diff --git a/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/IDevice.cs b/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/IDevice.cs index 68fad27..f4758a4 100644 --- a/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/IDevice.cs +++ b/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/IDevice.cs @@ -21,14 +21,33 @@ using System.Linq; using System.Text; using System.Threading.Tasks; +using WIDESEAWCS_Communicator; +using WIDESEAWCS_QuartzJob.DTO; -namespace WIDESEAWCS_QuartzJob.DeviceBase +namespace WIDESEAWCS_QuartzJob { /// <summary> /// 璁惧鎺ュ彛灞� /// </summary> - public interface IDevice + public interface IDevice : IDisposable { + + /// <summary> + /// 閫氳瀵硅薄 + /// </summary> + BaseCommunicator Communicator { get; } + + /// <summary> + /// 閫氳鍗忚淇℃伅 + /// </summary> + List<DeviceProDTO> DeviceProDTOs { get; } + + /// <summary> + /// 閫氳鍗忚鏄庣粏淇℃伅 + /// </summary> + List<DeviceProtocolDetailDTO> DeviceProtocolDetailDTOs { get; } + + /// <summary> /// 璁惧缂栧彿 /// </summary> @@ -40,19 +59,8 @@ string DeviceName { get; } /// <summary> - /// 璁惧鏄惁鏈夋晠闅� - /// </summary> - bool IsFault { get; } - - /// <summary> /// 璁惧鏄惁宸茶繛鎺� /// </summary> bool IsConnected { get; } - - /// <summary> - /// 璁惧鐘舵��(绌洪棽/杩愯涓�...) - /// </summary> - DeviceStatus Status { get; } - } } -- Gitblit v1.9.3