|
|
|
@ -4,14 +4,15 @@ |
|
|
|
|
|
|
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Xml.Serialization; |
|
|
|
using System.Xml.Serialization; |
|
|
|
|
|
|
|
using Lib.Driver.Interfaces; |
|
|
|
|
|
|
|
|
|
|
|
namespace Lib.Driver.Xml |
|
|
|
namespace Lib.Driver.Xml |
|
|
|
{ |
|
|
|
{ |
|
|
|
[XmlRoot("MidiDevice")] |
|
|
|
[XmlRoot("MidiDevice")] |
|
|
|
public class XmlDriver |
|
|
|
public class XmlDriver : IDriver |
|
|
|
{ |
|
|
|
{ |
|
|
|
[XmlArray("Channels")] |
|
|
|
[XmlArray("Channels")] |
|
|
|
[XmlArrayItem("Channel", typeof(XmlChannel))] |
|
|
|
[XmlArrayItem("Channel", typeof(XmlChannel))] |
|
|
|
public List<XmlChannel> Channels { get; set; } |
|
|
|
public List<XmlChannel>? Channels { get; set; } |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |