2015-07-20 14:32:55 -04:00
|
|
|
|
using MediaBrowser.Controller.LiveTv;
|
|
|
|
|
using MediaBrowser.Model.Logging;
|
|
|
|
|
using MediaBrowser.Model.Serialization;
|
|
|
|
|
using System;
|
2016-10-25 15:02:04 -04:00
|
|
|
|
using MediaBrowser.Model.IO;
|
2015-07-20 14:32:55 -04:00
|
|
|
|
|
2016-11-03 19:35:19 -04:00
|
|
|
|
namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
2015-07-20 14:32:55 -04:00
|
|
|
|
{
|
|
|
|
|
public class SeriesTimerManager : ItemDataProvider<SeriesTimerInfo>
|
|
|
|
|
{
|
2015-09-13 19:07:54 -04:00
|
|
|
|
public SeriesTimerManager(IFileSystem fileSystem, IJsonSerializer jsonSerializer, ILogger logger, string dataPath)
|
|
|
|
|
: base(fileSystem, jsonSerializer, logger, dataPath, (r1, r2) => string.Equals(r1.Id, r2.Id, StringComparison.OrdinalIgnoreCase))
|
2015-07-20 14:32:55 -04:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Add(SeriesTimerInfo item)
|
|
|
|
|
{
|
|
|
|
|
if (string.IsNullOrWhiteSpace(item.Id))
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentException("SeriesTimerInfo.Id cannot be null or empty.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
base.Add(item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|