2015-07-20 20:32:55 +02:00
|
|
|
|
using MediaBrowser.Controller.LiveTv;
|
|
|
|
|
using MediaBrowser.Model.Logging;
|
|
|
|
|
using MediaBrowser.Model.Serialization;
|
|
|
|
|
using System;
|
2015-10-04 06:23:11 +02:00
|
|
|
|
using CommonIO;
|
2015-07-20 20:32:55 +02:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
|
|
|
|
|
{
|
|
|
|
|
public class SeriesTimerManager : ItemDataProvider<SeriesTimerInfo>
|
|
|
|
|
{
|
2015-09-14 01:07:54 +02: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 20:32:55 +02: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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|