2015-04-04 21:35:29 +02:00
|
|
|
using MediaBrowser.Model.Dto;
|
2015-04-05 17:01:57 +02:00
|
|
|
using MediaBrowser.Model.Entities;
|
2015-04-04 21:35:29 +02:00
|
|
|
using System;
|
2014-05-08 22:26:20 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
2015-04-05 17:01:57 +02:00
|
|
|
namespace MediaBrowser.Model.MediaInfo
|
2014-05-08 22:26:20 +02:00
|
|
|
{
|
2015-04-04 21:35:29 +02:00
|
|
|
public class MediaInfo : MediaSourceInfo, IHasProviderIds
|
2014-05-08 22:26:20 +02:00
|
|
|
{
|
2017-08-10 20:01:31 +02:00
|
|
|
private static readonly string[] EmptyStringArray = new string[] { };
|
|
|
|
|
2017-08-19 21:43:35 +02:00
|
|
|
public ChapterInfo[] Chapters { get; set; }
|
2015-04-04 21:35:29 +02:00
|
|
|
|
2014-05-08 22:26:20 +02:00
|
|
|
/// <summary>
|
2015-04-04 21:35:29 +02:00
|
|
|
/// Gets or sets the album.
|
2014-05-08 22:26:20 +02:00
|
|
|
/// </summary>
|
2015-04-04 21:35:29 +02:00
|
|
|
/// <value>The album.</value>
|
|
|
|
public string Album { get; set; }
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the artists.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The artists.</value>
|
2017-08-19 21:43:35 +02:00
|
|
|
public string[] Artists { get; set; }
|
2015-04-04 21:35:29 +02:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the album artists.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The album artists.</value>
|
2017-08-10 20:01:31 +02:00
|
|
|
public string[] AlbumArtists { get; set; }
|
2015-04-04 21:35:29 +02:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the studios.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The studios.</value>
|
2017-08-19 21:43:35 +02:00
|
|
|
public string[] Studios { get; set; }
|
|
|
|
public string[] Genres { get; set; }
|
2015-04-04 21:35:29 +02:00
|
|
|
public int? IndexNumber { get; set; }
|
|
|
|
public int? ParentIndexNumber { get; set; }
|
|
|
|
public int? ProductionYear { get; set; }
|
|
|
|
public DateTime? PremiereDate { get; set; }
|
2017-08-19 21:43:35 +02:00
|
|
|
public BaseItemPerson[] People { get; set; }
|
2015-04-04 21:35:29 +02:00
|
|
|
public Dictionary<string, string> ProviderIds { get; set; }
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the official rating.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The official rating.</value>
|
|
|
|
public string OfficialRating { get; set; }
|
|
|
|
/// <summary>
|
2016-02-18 03:55:15 +01:00
|
|
|
/// Gets or sets the official rating description.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The official rating description.</value>
|
|
|
|
public string OfficialRatingDescription { get; set; }
|
|
|
|
/// <summary>
|
2015-04-04 21:35:29 +02:00
|
|
|
/// Gets or sets the overview.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The overview.</value>
|
|
|
|
public string Overview { get; set; }
|
2014-05-08 22:26:20 +02:00
|
|
|
|
|
|
|
public MediaInfo()
|
|
|
|
{
|
2017-08-19 21:43:35 +02:00
|
|
|
Chapters = new ChapterInfo[] { };
|
|
|
|
Artists = new string[] { };
|
2017-08-10 20:01:31 +02:00
|
|
|
AlbumArtists = EmptyStringArray;
|
2017-08-19 21:43:35 +02:00
|
|
|
Studios = new string[] { };
|
|
|
|
Genres = new string[] { };
|
|
|
|
People = new BaseItemPerson[] { };
|
2015-04-04 21:35:29 +02:00
|
|
|
ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
2014-05-08 22:26:20 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|