patrick
2019-12-10 1c4426810c71eead57084be8a18ade8d314dd8c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using Bro.Common.Model;
using Bro.Common.Model.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Bro.Common.Interface
{
    /// <summary>
    /// 设备配置
    /// </summary>
    public interface IDeviceConfig
    {
        /// <summary>
        /// 暂时设想的一些不好归类的配置,使用json序列化之后保存在该字段
        /// </summary>
        //string DataConfig { get; set; }        
    }
 
    /// <summary>
    /// 设备初始配置
    /// </summary>
    public interface IInitialConfig : ILog
    {
        /// <summary>
        /// 设备序号 GUID
        /// 因为本项目设备信息未做配置,将索引添加在初始配置中
        /// </summary>
        string ID { get; set; }
 
        string Name { get; set; }
 
        bool IsEnabled { get; set; }
 
        string DriverType { get; set; }
    }
 
    public interface IMonitorInitialConfig 
    {
        bool IsEnableMonitor { get; set; }
        int ScanInterval { get; set; }
        int Timeout { get; set; }
        List<WarningSet> WarningSetCollection { get; set; }
        List<MonitorSet> MonitorSetCollection { get; set; }
    }
 
    public interface ILog
    {
        string LogPath { get; set; }
 
        bool IsEnableLog { get; set; }
    }
}