Files
eCIA/eCIAv2.Library/Config/eCIAConfig.cs

41 lines
926 B
C#

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;
}
}