jellyfin/MediaBrowser.Model/LiveTv/SeriesTimerInfoDto.cs

105 lines
3.3 KiB
C#
Raw Normal View History

2014-03-23 23:21:49 +01:00
using MediaBrowser.Model.Entities;
using System;
2013-12-15 02:17:57 +01:00
using System.Collections.Generic;
2014-01-18 11:03:47 +01:00
using System.Diagnostics;
2016-10-22 04:08:34 +02:00
using MediaBrowser.Model.Serialization;
2013-12-15 02:17:57 +01:00
namespace MediaBrowser.Model.LiveTv
{
2015-08-16 22:26:49 +02:00
/// <summary>
/// Class SeriesTimerInfoDto.
/// </summary>
2014-01-18 11:03:47 +01:00
[DebuggerDisplay("Name = {Name}")]
2014-03-23 23:21:49 +01:00
public class SeriesTimerInfoDto : BaseTimerInfoDto
2013-12-15 02:17:57 +01:00
{
2016-10-03 02:43:09 +02:00
public SeriesTimerInfoDto()
{
ImageTags = new Dictionary<ImageType, string>();
Days = new List<DayOfWeek>();
Type = "SeriesTimer";
}
2013-12-15 02:17:57 +01:00
/// <summary>
2013-12-16 19:44:03 +01:00
/// Gets or sets a value indicating whether [record any time].
2013-12-15 02:17:57 +01:00
/// </summary>
2013-12-16 19:44:03 +01:00
/// <value><c>true</c> if [record any time]; otherwise, <c>false</c>.</value>
public bool RecordAnyTime { get; set; }
2016-09-21 23:09:14 +02:00
public bool SkipEpisodesInLibrary { get; set; }
2013-12-16 19:44:03 +01:00
/// <summary>
/// Gets or sets a value indicating whether [record any channel].
/// </summary>
/// <value><c>true</c> if [record any channel]; otherwise, <c>false</c>.</value>
public bool RecordAnyChannel { get; set; }
2016-09-21 23:09:14 +02:00
public int KeepUpTo { get; set; }
2013-12-16 19:44:03 +01:00
/// <summary>
/// Gets or sets a value indicating whether [record new only].
/// </summary>
/// <value><c>true</c> if [record new only]; otherwise, <c>false</c>.</value>
public bool RecordNewOnly { get; set; }
2013-12-15 02:17:57 +01:00
/// <summary>
/// Gets or sets the days.
/// </summary>
/// <value>The days.</value>
public List<DayOfWeek> Days { get; set; }
/// <summary>
/// Gets or sets the day pattern.
/// </summary>
/// <value>The day pattern.</value>
public DayPattern? DayPattern { get; set; }
2014-01-20 20:55:49 +01:00
/// <summary>
/// Gets or sets the image tags.
/// </summary>
/// <value>The image tags.</value>
2014-05-08 22:09:53 +02:00
public Dictionary<ImageType, string> ImageTags { get; set; }
2014-01-20 20:55:49 +01:00
/// <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); }
}
2016-10-09 09:18:43 +02:00
/// <summary>
/// Gets or sets the parent thumb item id.
/// </summary>
/// <value>The parent thumb item id.</value>
public string ParentThumbItemId { get; set; }
/// <summary>
/// Gets or sets the parent thumb image tag.
/// </summary>
/// <value>The parent thumb image tag.</value>
public string ParentThumbImageTag { get; set; }
/// <summary>
/// Gets or sets the parent primary image item identifier.
/// </summary>
/// <value>The parent primary image item identifier.</value>
public string ParentPrimaryImageItemId { get; set; }
/// <summary>
/// Gets or sets the parent primary image tag.
/// </summary>
/// <value>The parent primary image tag.</value>
public string ParentPrimaryImageTag { get; set; }
2013-12-15 02:17:57 +01:00
}
2016-09-26 20:59:18 +02:00
public enum KeepUntil
{
UntilDeleted,
UntilSpaceNeeded,
UntilWatched,
UntilDate
}
2013-12-15 02:17:57 +01:00
}