master
Simon G 5 years ago
parent 12b9bafa75
commit afe05e8c9c
  1. 1
      Lib.Driver/Interfaces/IDriver.cs
  2. 3
      Lib.Driver/Xml/XmlDriver.cs

@ -9,6 +9,7 @@ namespace Lib.Driver.Interfaces
{
public interface IDriver
{
string? Name { get; }
List<XmlChannel>? Channels { get; }
}
}

@ -11,6 +11,9 @@ namespace Lib.Driver.Xml
[XmlRoot("MidiDevice")]
public class XmlDriver : IDriver
{
[XmlElement("Name")]
public string? Name { get; set; }
[XmlArray("Channels")]
[XmlArrayItem("Channel", typeof(XmlChannel))]
public List<XmlChannel>? Channels { get; set; }

Loading…
Cancel
Save