2014-01-29 05:17:58 +00:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
|
{
|
2014-02-07 03:10:13 +00:00
|
|
|
|
public class ItemLookupInfo : IHasProviderIds
|
2014-01-29 05:17:58 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name.</value>
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the metadata language.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The metadata language.</value>
|
|
|
|
|
public string MetadataLanguage { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the metadata country code.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The metadata country code.</value>
|
|
|
|
|
public string MetadataCountryCode { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the provider ids.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The provider ids.</value>
|
|
|
|
|
public Dictionary<string, string> ProviderIds { get; set; }
|
2014-01-30 21:23:54 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the year.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The year.</value>
|
|
|
|
|
public int? Year { get; set; }
|
2014-02-04 20:19:29 +00:00
|
|
|
|
public int? IndexNumber { get; set; }
|
|
|
|
|
public int? ParentIndexNumber { get; set; }
|
2014-01-29 05:17:58 +00:00
|
|
|
|
|
2014-02-07 03:10:13 +00:00
|
|
|
|
public ItemLookupInfo()
|
2014-01-29 05:17:58 +00:00
|
|
|
|
{
|
|
|
|
|
ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-01-31 19:55:21 +00:00
|
|
|
|
|
2014-02-07 03:10:13 +00:00
|
|
|
|
public interface IHasLookupInfo<out TLookupInfoType>
|
|
|
|
|
where TLookupInfoType : ItemLookupInfo, new()
|
|
|
|
|
{
|
|
|
|
|
TLookupInfoType GetLookupInfo();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ArtistInfo : ItemLookupInfo
|
|
|
|
|
{
|
|
|
|
|
public List<SongInfo> SongInfos { get; set; }
|
|
|
|
|
|
|
|
|
|
public ArtistInfo()
|
|
|
|
|
{
|
|
|
|
|
SongInfos = new List<SongInfo>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class AlbumInfo : ItemLookupInfo
|
2014-01-31 19:55:21 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the album artist.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The album artist.</value>
|
|
|
|
|
public string AlbumArtist { get; set; }
|
2014-02-04 20:19:29 +00:00
|
|
|
|
|
2014-01-31 19:55:21 +00:00
|
|
|
|
/// <summary>
|
2014-02-04 20:19:29 +00:00
|
|
|
|
/// Gets or sets the artist provider ids.
|
2014-01-31 19:55:21 +00:00
|
|
|
|
/// </summary>
|
2014-02-04 20:19:29 +00:00
|
|
|
|
/// <value>The artist provider ids.</value>
|
|
|
|
|
public Dictionary<string, string> ArtistProviderIds { get; set; }
|
2014-02-07 03:10:13 +00:00
|
|
|
|
public List<SongInfo> SongInfos { get; set; }
|
2014-02-04 20:19:29 +00:00
|
|
|
|
|
2014-02-07 03:10:13 +00:00
|
|
|
|
public AlbumInfo()
|
2014-02-04 20:19:29 +00:00
|
|
|
|
{
|
|
|
|
|
ArtistProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
2014-02-07 03:10:13 +00:00
|
|
|
|
SongInfos = new List<SongInfo>();
|
2014-02-04 20:19:29 +00:00
|
|
|
|
}
|
2014-01-31 19:55:21 +00:00
|
|
|
|
}
|
2014-02-02 13:36:31 +00:00
|
|
|
|
|
2014-02-07 03:10:13 +00:00
|
|
|
|
public class GameInfo : ItemLookupInfo
|
2014-02-02 13:36:31 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the game system.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The game system.</value>
|
|
|
|
|
public string GameSystem { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-07 03:10:13 +00:00
|
|
|
|
public class GameSystemInfo : ItemLookupInfo
|
2014-02-02 13:36:31 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the path.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The path.</value>
|
|
|
|
|
public string Path { get; set; }
|
|
|
|
|
}
|
2014-02-04 20:19:29 +00:00
|
|
|
|
|
2014-02-07 03:10:13 +00:00
|
|
|
|
public class EpisodeInfo : ItemLookupInfo
|
2014-02-04 20:19:29 +00:00
|
|
|
|
{
|
|
|
|
|
public Dictionary<string, string> SeriesProviderIds { get; set; }
|
|
|
|
|
|
|
|
|
|
public int? IndexNumberEnd { get; set; }
|
2014-02-28 04:49:02 +00:00
|
|
|
|
public int? AnimeSeriesIndex { get; set; }
|
2014-02-04 20:19:29 +00:00
|
|
|
|
|
2014-02-07 03:10:13 +00:00
|
|
|
|
public EpisodeInfo()
|
2014-02-04 20:19:29 +00:00
|
|
|
|
{
|
|
|
|
|
SeriesProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-02-07 03:10:13 +00:00
|
|
|
|
|
|
|
|
|
public class SongInfo : ItemLookupInfo
|
|
|
|
|
{
|
|
|
|
|
public string AlbumArtist { get; set; }
|
|
|
|
|
public string Album { get; set; }
|
|
|
|
|
public List<string> Artists { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class SeriesInfo : ItemLookupInfo
|
|
|
|
|
{
|
2014-02-28 04:49:02 +00:00
|
|
|
|
public int? AnimeSeriesIndex { get; set; }
|
2014-02-07 03:10:13 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class PersonLookupInfo : ItemLookupInfo
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class MovieInfo : ItemLookupInfo
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class BoxSetInfo : ItemLookupInfo
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class MusicVideoInfo : ItemLookupInfo
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class TrailerInfo : ItemLookupInfo
|
|
|
|
|
{
|
2014-02-15 16:36:09 +00:00
|
|
|
|
public bool IsLocalTrailer { get; set; }
|
2014-02-07 03:10:13 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class BookInfo : ItemLookupInfo
|
|
|
|
|
{
|
2014-02-09 04:52:52 +00:00
|
|
|
|
public string SeriesName { get; set; }
|
2014-02-07 03:10:13 +00:00
|
|
|
|
}
|
2014-02-08 22:38:02 +00:00
|
|
|
|
|
|
|
|
|
public class SeasonInfo : ItemLookupInfo
|
|
|
|
|
{
|
2014-02-25 15:40:16 +00:00
|
|
|
|
public Dictionary<string, string> SeriesProviderIds { get; set; }
|
2014-02-28 04:49:02 +00:00
|
|
|
|
public int? AnimeSeriesIndex { get; set; }
|
2014-02-25 15:40:16 +00:00
|
|
|
|
|
|
|
|
|
public SeasonInfo()
|
|
|
|
|
{
|
|
|
|
|
SeriesProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
|
|
|
|
}
|
2014-02-08 22:38:02 +00:00
|
|
|
|
}
|
2014-01-29 05:17:58 +00:00
|
|
|
|
}
|