// Author: Gockner, Simon // Created: 2021-04-09 // Copyright(c) 2021 SimonG. All Rights Reserved. using System.Collections.Generic; using System.Xml.Serialization; using Lib.Driver.Interfaces; namespace Lib.Driver.Xml { [XmlRoot("MidiDevice")] public class XmlDriver : IDriver { [XmlElement("Name")] public string? Name { get; set; } [XmlElement("InputProductId")] public int InputProductId { get; set; } [XmlElement("OutputProductId")] public int OutputProductId { get; set; } [XmlArray("Channels")] [XmlArrayItem("Channel", typeof(XmlChannel))] public List? Channels { get; set; } } }