[성현모] DeviceManager, Factory 리팩토링, DIO, Scanner 추가
This commit is contained in:
40
eCIAv2.Library/Config/eCIAConfig.cs
Normal file
40
eCIAv2.Library/Config/eCIAConfig.cs
Normal file
@ -0,0 +1,40 @@
|
||||
using eCIAv2.Library.Devices.Scanner;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace eCIAv2.Library.Config
|
||||
{
|
||||
public class eCIAConfig
|
||||
{
|
||||
public Dictionary<int, eCIAChConfig> Configs { get; set; } = new Dictionary<int, eCIAChConfig>();
|
||||
}
|
||||
|
||||
public class eCIAChConfig
|
||||
{
|
||||
public short CH { get; set; }
|
||||
|
||||
public Device Device { get; set; } = new Device();
|
||||
}
|
||||
|
||||
public class Device
|
||||
{
|
||||
public List<DIO> DIOs { get; set; } = new List<DIO>();
|
||||
public List<Scanner> Scanners { get; set; } = new List<Scanner>();
|
||||
}
|
||||
|
||||
|
||||
//device
|
||||
public class DIO
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class Scanner
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Port { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user