2010-10-02 21:01:43 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2010-09-28 22:44:33 +02:00
|
|
|
|
using System.Linq;
|
2010-10-21 03:49:23 +02:00
|
|
|
|
using NzbDrone.Core.Repository;
|
2011-01-29 07:10:22 +01:00
|
|
|
|
using NzbDrone.Core.Repository.Quality;
|
2010-10-02 21:01:43 +02:00
|
|
|
|
using TvdbLib.Data;
|
2010-09-23 05:19:47 +02:00
|
|
|
|
|
2010-09-28 06:25:41 +02:00
|
|
|
|
namespace NzbDrone.Core.Providers
|
2010-09-23 05:19:47 +02:00
|
|
|
|
{
|
2010-09-28 06:25:41 +02:00
|
|
|
|
public interface ISeriesProvider
|
2010-09-23 05:19:47 +02:00
|
|
|
|
{
|
2010-10-17 19:22:48 +02:00
|
|
|
|
IQueryable<Series> GetAllSeries();
|
2010-10-05 08:21:18 +02:00
|
|
|
|
Series GetSeries(int seriesId);
|
2010-09-28 21:32:19 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines if a series is being actively watched.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">The TVDB ID of the series</param>
|
|
|
|
|
/// <returns>Whether or not the show is monitored</returns>
|
|
|
|
|
bool IsMonitored(long id);
|
2010-10-04 03:00:50 +02:00
|
|
|
|
TvdbSeries MapPathToSeries(string path);
|
2011-04-01 08:36:34 +02:00
|
|
|
|
void AddSeries(string path, int tvDbSeriesId, int qualityProfileId);
|
2011-01-29 07:10:22 +01:00
|
|
|
|
Series FindSeries(string cleanTitle);
|
|
|
|
|
bool QualityWanted(int seriesId, QualityTypes quality);
|
2011-02-18 03:50:40 +01:00
|
|
|
|
void UpdateSeries(Series series);
|
2011-02-18 07:49:23 +01:00
|
|
|
|
void DeleteSeries(int seriesId);
|
2011-03-09 08:40:48 +01:00
|
|
|
|
bool SeriesPathExists(string cleanPath);
|
2011-04-01 08:36:34 +02:00
|
|
|
|
Series UpdateSeriesInfo(int seriesId);
|
2010-09-23 05:19:47 +02:00
|
|
|
|
}
|
|
|
|
|
}
|