2010-10-02 12:01:43 -07:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2010-09-28 13:44:33 -07:00
|
|
|
|
using System.Linq;
|
2010-10-20 18:49:23 -07:00
|
|
|
|
using NzbDrone.Core.Repository;
|
2011-01-28 22:10:22 -08:00
|
|
|
|
using NzbDrone.Core.Repository.Quality;
|
2010-10-02 12:01:43 -07:00
|
|
|
|
using TvdbLib.Data;
|
2010-09-22 20:19:47 -07:00
|
|
|
|
|
2010-09-27 21:25:41 -07:00
|
|
|
|
namespace NzbDrone.Core.Providers
|
2010-09-22 20:19:47 -07:00
|
|
|
|
{
|
2010-09-27 21:25:41 -07:00
|
|
|
|
public interface ISeriesProvider
|
2010-09-22 20:19:47 -07:00
|
|
|
|
{
|
2010-10-17 10:22:48 -07:00
|
|
|
|
IQueryable<Series> GetAllSeries();
|
2010-10-04 23:21:18 -07:00
|
|
|
|
Series GetSeries(int seriesId);
|
2010-09-28 12:32:19 -07: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-03 18:00:50 -07:00
|
|
|
|
TvdbSeries MapPathToSeries(string path);
|
2011-03-31 23:36:34 -07:00
|
|
|
|
void AddSeries(string path, int tvDbSeriesId, int qualityProfileId);
|
2011-01-28 22:10:22 -08:00
|
|
|
|
Series FindSeries(string cleanTitle);
|
|
|
|
|
bool QualityWanted(int seriesId, QualityTypes quality);
|
2011-02-17 18:50:40 -08:00
|
|
|
|
void UpdateSeries(Series series);
|
2011-02-17 22:49:23 -08:00
|
|
|
|
void DeleteSeries(int seriesId);
|
2011-03-08 23:40:48 -08:00
|
|
|
|
bool SeriesPathExists(string cleanPath);
|
2011-03-31 23:36:34 -07:00
|
|
|
|
Series UpdateSeriesInfo(int seriesId);
|
2010-09-22 20:19:47 -07:00
|
|
|
|
}
|
|
|
|
|
}
|