You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.1 KiB
50 lines
1.1 KiB
using System;
|
|
using System.Linq;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace NzbDrone.Core.Tvdb
|
|
{
|
|
public class TvdbSeriesSearchItem
|
|
{
|
|
[XmlElement]
|
|
public int id { get; set; }
|
|
|
|
[XmlElement]
|
|
public int seriesid { get; set; }
|
|
|
|
[XmlElement]
|
|
public string language { get; set; }
|
|
|
|
[XmlElement]
|
|
public string SeriesName { get; set; }
|
|
|
|
[XmlElement]
|
|
public string banner { get; set; }
|
|
|
|
[XmlElement]
|
|
public string Overview { get; set; }
|
|
|
|
[XmlElement(ElementName = "FirstAired")]
|
|
public string FirstAiredString
|
|
{
|
|
get { return FirstAired.HasValue ? FirstAired.Value.ToString("yyyy-MM-dd") : null; }
|
|
set
|
|
{
|
|
DateTime d;
|
|
if(DateTime.TryParse(value, out d))
|
|
FirstAired = d;
|
|
else
|
|
FirstAired = null;
|
|
}
|
|
}
|
|
|
|
[XmlIgnore]
|
|
public DateTime? FirstAired { get; set; }
|
|
|
|
[XmlElement]
|
|
public string IMDB_ID { get; set; }
|
|
|
|
[XmlElement]
|
|
public string zap2it_id { get; set; }
|
|
}
|
|
} |