aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/LiveTv/RecordingInfoDto.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/LiveTv/RecordingInfoDto.cs')
-rw-r--r--MediaBrowser.Model/LiveTv/RecordingInfoDto.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/MediaBrowser.Model/LiveTv/RecordingInfoDto.cs b/MediaBrowser.Model/LiveTv/RecordingInfoDto.cs
index 969aa1b8f..6df9ef725 100644
--- a/MediaBrowser.Model/LiveTv/RecordingInfoDto.cs
+++ b/MediaBrowser.Model/LiveTv/RecordingInfoDto.cs
@@ -1,4 +1,5 @@
using System.Diagnostics;
+using System.Runtime.Serialization;
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Entities;
using System;
@@ -225,6 +226,16 @@ namespace MediaBrowser.Model.LiveTv
public UserItemDataDto UserData { 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 ImageTags != null && ImageTags.ContainsKey(ImageType.Primary); }
+ }
+
+ /// <summary>
/// Gets or sets the type.
/// </summary>
/// <value>The type.</value>