diff options
Diffstat (limited to 'MediaBrowser.Model/MediaInfo/MediaInfo.cs')
| -rw-r--r-- | MediaBrowser.Model/MediaInfo/MediaInfo.cs | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/MediaBrowser.Model/MediaInfo/MediaInfo.cs b/MediaBrowser.Model/MediaInfo/MediaInfo.cs index 126710197..63b1c9cfd 100644 --- a/MediaBrowser.Model/MediaInfo/MediaInfo.cs +++ b/MediaBrowser.Model/MediaInfo/MediaInfo.cs @@ -7,7 +7,9 @@ namespace MediaBrowser.Model.MediaInfo { public class MediaInfo : MediaSourceInfo, IHasProviderIds { - public List<ChapterInfo> Chapters { get; set; } + private static readonly string[] EmptyStringArray = new string[] { }; + + public ChapterInfo[] Chapters { get; set; } /// <summary> /// Gets or sets the album. @@ -18,23 +20,23 @@ namespace MediaBrowser.Model.MediaInfo /// Gets or sets the artists. /// </summary> /// <value>The artists.</value> - public List<string> Artists { get; set; } + public string[] Artists { get; set; } /// <summary> /// Gets or sets the album artists. /// </summary> /// <value>The album artists.</value> - public List<string> AlbumArtists { get; set; } + public string[] AlbumArtists { get; set; } /// <summary> /// Gets or sets the studios. /// </summary> /// <value>The studios.</value> - public List<string> Studios { get; set; } - public List<string> Genres { get; set; } + public string[] Studios { get; set; } + public string[] Genres { get; set; } public int? IndexNumber { get; set; } public int? ParentIndexNumber { get; set; } public int? ProductionYear { get; set; } public DateTime? PremiereDate { get; set; } - public List<BaseItemPerson> People { get; set; } + public BaseItemPerson[] People { get; set; } public Dictionary<string, string> ProviderIds { get; set; } /// <summary> /// Gets or sets the official rating. @@ -54,12 +56,12 @@ namespace MediaBrowser.Model.MediaInfo public MediaInfo() { - Chapters = new List<ChapterInfo>(); - Artists = new List<string>(); - AlbumArtists = new List<string>(); - Studios = new List<string>(); - Genres = new List<string>(); - People = new List<BaseItemPerson>(); + Chapters = new ChapterInfo[] { }; + Artists = new string[] { }; + AlbumArtists = EmptyStringArray; + Studios = new string[] { }; + Genres = new string[] { }; + People = new BaseItemPerson[] { }; ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); } } |
