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-09-23 03:19:47 +00:00
|
|
|
|
using NzbDrone.Core.Repository;
|
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
|
|
|
|
{
|
|
|
|
|
IQueryable<Series> GetSeries();
|
2010-09-28 19:32:19 +00:00
|
|
|
|
Series GetSeries(long tvdbId);
|
2010-09-23 03:19:47 +00:00
|
|
|
|
void SyncSeriesWithDisk();
|
2010-09-28 19:32:19 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Parses a post title
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="postTitle">Title of the report</param>
|
|
|
|
|
/// <returns>TVDB id of the series this report belongs to</returns>
|
|
|
|
|
long Parse(string postTitle);
|
|
|
|
|
|
|
|
|
|
/// <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-02 19:01:43 +00:00
|
|
|
|
|
|
|
|
|
bool RegisterSeries(string path);
|
|
|
|
|
void RegisterSeries(string path, TvdbSeries series);
|
|
|
|
|
List<String> GetUnmappedFolders();
|
2010-09-23 03:19:47 +00:00
|
|
|
|
}
|
|
|
|
|
}
|