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 loaded into memory.
///
[XmlIgnore()]
public Windows.UI.Xaml.Media.ImageSource LoadedImageSource { get; set; }
///
/// Gets or sets the image uri.
///
[XmlElement("imagePressed")]
public string ImagePressedSource { get; set; }
///
/// Gets or sets the pressed image loaded into memory.
///
[XmlIgnore()]
public Windows.UI.Xaml.Media.ImageSource LoadedImagePressedSource { 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.LoadedImageSource = null;
this.LoadedImagePressedSource = null;
this.Sounds = new List();
}
#endregion
}
}