Files
cuetools.net/CUETools.CTDB/CTDBResponseMeta.cs

87 lines
2.8 KiB
C#
Raw Normal View History

using System;
using System.Xml.Serialization;
namespace CUETools.CTDB
{
[Serializable]
public class CTDBResponseMeta
{
public CTDBResponseMeta()
{
}
public CTDBResponseMeta(CTDBResponseMeta src)
{
this.source = src.source;
this.id = src.id;
this.artist = src.artist;
this.album = src.album;
this.year = src.year;
this.genre = src.genre;
this.extra = src.extra;
this.country = src.country;
this.releasedate = src.releasedate;
this.discnumber = src.discnumber;
this.disccount = src.disccount;
this.discname = src.discname;
this.infourl = src.infourl;
this.barcode = src.barcode;
if (src.coverart != null)
{
this.coverart = new CTDBResponseMetaImage[src.coverart.Length];
for (int i = 0; i < src.coverart.Length; i++)
this.coverart[i] = new CTDBResponseMetaImage(src.coverart[i]);
}
if (src.track != null)
{
this.track = new CTDBResponseMetaTrack[src.track.Length];
for (int i = 0; i < src.track.Length; i++)
this.track[i] = new CTDBResponseMetaTrack(src.track[i]);
}
if (src.label != null)
{
this.label = new CTDBResponseMetaLabel[src.label.Length];
for (int i = 0; i < src.label.Length; i++)
this.label[i] = new CTDBResponseMetaLabel(src.label[i]);
}
}
[XmlAttribute]
public string source { get; set; }
[XmlAttribute]
public string id { get; set; }
[XmlAttribute]
public string artist { get; set; }
[XmlAttribute]
public string album { get; set; }
[XmlAttribute]
public string year { get; set; }
[XmlAttribute]
public string genre { get; set; }
[XmlAttribute]
public string extra { get; set; }
[XmlAttribute]
public string country { get; set; }
[XmlAttribute]
public string releasedate { get; set; }
[XmlAttribute]
public string discnumber { get; set; }
[XmlAttribute]
public string disccount { get; set; }
[XmlAttribute]
public string discname { get; set; }
[XmlAttribute]
public string infourl { get; set; }
[XmlAttribute]
public string barcode { get; set; }
[XmlElement]
2012-01-17 08:04:16 +00:00
public CTDBResponseMetaImage[] coverart;
[XmlElement]
public CTDBResponseMetaTrack[] track;
[XmlElement]
public CTDBResponseMetaLabel[] label;
}
}