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