Files
cuetools.net/CUETools.CTDB/CTDBResponseMeta.cs
chudov 7f07eff0a5 Version 2.0.4
* Better handling of metadata for playstation type CDs
* HTOA filename now starts with 00 instead of 01.00
* CUETools: local database: when the folder is already in database, you can now refresh it instead of removing/adding it
* CUETools: local database: added sort category "by CTDB confidence"
* CUETools: local database: new menu item: locate in explorer
* CUERipper: Option to disable gaps detection
* CUERipper: now correctly submits CDs with data tracks to Freedb
* EAC plugin: now fixes codepage for freedb entries
2012-04-08 23:54:36 +00:00

87 lines
2.8 KiB
C#

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]
public CTDBResponseMetaImage[] coverart;
[XmlElement]
public CTDBResponseMetaTrack[] track;
[XmlElement]
public CTDBResponseMetaLabel[] label;
}
}