jellyfin-server/MediaBrowser.Model/LiveTv/SeriesTimerInfoDto.cs

81 lines
2.4 KiB
C#
Raw Normal View History

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