From afe05e8c9c676148994f86735d4061d027900354 Mon Sep 17 00:00:00 2001 From: Simon G Date: Sat, 10 Apr 2021 13:37:15 +0200 Subject: [PATCH] - add name --- Lib.Driver/Interfaces/IDriver.cs | 1 + Lib.Driver/Xml/XmlDriver.cs | 3 +++ 2 files changed, 4 insertions(+) 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; }