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