2020-02-06 07:20:23 -07:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 12:54:44 -07:00
|
|
|
using System;
|
2019-01-13 12:22:00 -07:00
|
|
|
using MediaBrowser.Controller.LiveTv;
|
|
|
|
using MediaBrowser.Model.Serialization;
|
|
|
|
using Microsoft.Extensions.Logging;
|
2015-07-20 11:32:55 -07:00
|
|
|
|
2016-11-03 16:35:19 -07:00
|
|
|
namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
2015-07-20 11:32:55 -07:00
|
|
|
{
|
|
|
|
public class SeriesTimerManager : ItemDataProvider<SeriesTimerInfo>
|
|
|
|
{
|
2020-12-23 05:12:40 -07:00
|
|
|
public SeriesTimerManager(ILogger logger, string dataPath)
|
|
|
|
: base(logger, dataPath, (r1, r2) => string.Equals(r1.Id, r2.Id, StringComparison.OrdinalIgnoreCase))
|
2015-07-20 11:32:55 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2020-02-06 07:20:23 -07:00
|
|
|
/// <inheritdoc />
|
2015-07-20 11:32:55 -07:00
|
|
|
public override void Add(SeriesTimerInfo item)
|
|
|
|
{
|
2018-09-12 10:26:21 -07:00
|
|
|
if (string.IsNullOrEmpty(item.Id))
|
2015-07-20 11:32:55 -07:00
|
|
|
{
|
|
|
|
throw new ArgumentException("SeriesTimerInfo.Id cannot be null or empty.");
|
|
|
|
}
|
|
|
|
|
|
|
|
base.Add(item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|