mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 19:08:53 -07:00
29 lines
849 B
C#
29 lines
849 B
C#
#pragma warning disable CS1591
|
|
|
|
using System;
|
|
using MediaBrowser.Controller.LiveTv;
|
|
using MediaBrowser.Model.Serialization;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
|
{
|
|
public class SeriesTimerManager : ItemDataProvider<SeriesTimerInfo>
|
|
{
|
|
public SeriesTimerManager(IJsonSerializer jsonSerializer, ILogger logger, string dataPath)
|
|
: base(jsonSerializer, logger, dataPath, (r1, r2) => string.Equals(r1.Id, r2.Id, StringComparison.OrdinalIgnoreCase))
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override void Add(SeriesTimerInfo item)
|
|
{
|
|
if (string.IsNullOrEmpty(item.Id))
|
|
{
|
|
throw new ArgumentException("SeriesTimerInfo.Id cannot be null or empty.");
|
|
}
|
|
|
|
base.Add(item);
|
|
}
|
|
}
|
|
}
|