using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace DrumKit { [XmlType("drum")] public class Drum { #region Public properties [XmlAttribute("id")] public string Id { get; set; } /// /// Gets or sets the name of the drum. /// [XmlElement("name")] public string Name { get; set; } /// /// Gets or sets the image uri. /// [XmlElement("image")] public string ImageSource { get; set; } /// /// Gets or sets the image uri. /// [XmlElement("imagePressed")] public string ImagePressedSource { get; set; } /// /// Gets or sets the list of sound sources. /// [XmlArray("sounds")] public List Sounds { get; set; } #endregion #region Constructor public Drum() { this.Name = null; this.ImageSource = null; this.ImagePressedSource = null; this.Sounds = new List(); } #endregion } }