using System; using System.Collections.Generic; using System.Linq; using NzbDrone.Core.Repository; using NzbDrone.Core.Repository.Quality; using TvdbLib.Data; namespace NzbDrone.Core.Providers { public interface ISeriesProvider { IQueryable GetAllSeries(); Series GetSeries(int seriesId); /// /// Determines if a series is being actively watched. /// /// The TVDB ID of the series /// Whether or not the show is monitored bool IsMonitored(long id); TvdbSeries MapPathToSeries(string path); TvdbSeries MapPathToSeries(int tvDbId); void AddSeries(string path, TvdbSeries series, int qualityProfileId); Series FindSeries(string cleanTitle); bool QualityWanted(int seriesId, QualityTypes quality); void UpdateSeries(Series series); void DeleteSeries(int seriesId); bool SeriesPathExists(string cleanPath); } }