diff --git a/Lib.Driver/Interfaces/IDriver.cs b/Lib.Driver/Interfaces/IDriver.cs index 7db1be7..ee4f609 100644 --- a/Lib.Driver/Interfaces/IDriver.cs +++ b/Lib.Driver/Interfaces/IDriver.cs @@ -9,6 +9,7 @@ namespace Lib.Driver.Interfaces { public interface IDriver { + string? Name { get; } List? Channels { get; } } } \ No newline at end of file diff --git a/Lib.Driver/Xml/XmlDriver.cs b/Lib.Driver/Xml/XmlDriver.cs index ea5fed8..302ff76 100644 --- a/Lib.Driver/Xml/XmlDriver.cs +++ b/Lib.Driver/Xml/XmlDriver.cs @@ -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? Channels { get; set; }