20 lines
750 B
C#
20 lines
750 B
C#
|
|
using Cowain.Base.Models;
|
|||
|
|
using Cowain.Base.ViewModels;
|
|||
|
|
using Plugin.Cowain.Driver.IServices;
|
|||
|
|
using Plugin.Cowain.Driver.ViewModels;
|
|||
|
|
|
|||
|
|
namespace Plugin.Cowain.Driver.Abstractions;
|
|||
|
|
|
|||
|
|
public interface IDeviceMonitor
|
|||
|
|
{
|
|||
|
|
List<DeviceThread> DeviceThreads { get; }
|
|||
|
|
List<DeviceViewModel> Devices { get; }
|
|||
|
|
List<AlarmViewModel> Alarms { get; }
|
|||
|
|
List<DeviceViewModel> GetDeviceViewModels();
|
|||
|
|
void AddDevice(IDriver driver, IActionPluginService actionPluginService, DeviceViewModel device);
|
|||
|
|
ResultModel<IDriver> GetDriver(string name);
|
|||
|
|
ResultModel<DeviceViewModel> GetDevice(string name);
|
|||
|
|
ResultModel<VariableViewModel> GetVariable(string plc, string address);
|
|||
|
|
ResultModel<string> GetActionParam(string plc, string address);
|
|||
|
|
}
|