add GenreItems property

This commit is contained in:
Luke Pulverenti
2017-05-18 17:05:47 -04:00
parent 72f120d854
commit 47fc7c6aee
10 changed files with 180 additions and 123 deletions

View File

@@ -346,7 +346,9 @@ namespace MediaBrowser.Model.Dto
/// Gets or sets the studios.
/// </summary>
/// <value>The studios.</value>
public StudioDto[] Studios { get; set; }
public NameIdPair[] Studios { get; set; }
public NameIdPair[] GenreItems { get; set; }
/// <summary>
/// If the item does not have a logo, this will hold the Id of the Parent that has one.

View File

@@ -1,6 +1,4 @@
using System.ComponentModel;
using System.Diagnostics;
using MediaBrowser.Model.Serialization;
using System.Diagnostics;
namespace MediaBrowser.Model.Dto
{
@@ -27,23 +25,5 @@ namespace MediaBrowser.Model.Dto
/// </summary>
/// <value>The primary image tag.</value>
public string PrimaryImageTag { get; set; }
/// <summary>
/// Gets a value indicating whether this instance has primary image.
/// </summary>
/// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
[IgnoreDataMember]
public bool HasPrimaryImage
{
get
{
return PrimaryImageTag != null;
}
}
/// <summary>
/// Occurs when [property changed].
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
}
}

View File

@@ -82,6 +82,8 @@
/// </summary>
Genres,
GenreItems,
/// <summary>
/// The home page URL
/// </summary>