Ombi/src/Ombi.Store/Repository/IPlexContentRepository.cs
Jamie 246f1c07cf
Add the Issue Reporting functionality (#1811)
* Added issuesreporting and the ability to add categories to the UI
* Added lazy loading!
2017-12-28 21:51:33 +00:00

19 lines
No EOL
665 B
C#

using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Ombi.Store.Entities;
namespace Ombi.Store.Repository
{
public interface IPlexContentRepository : IRepository<PlexServerContent>
{
Task<bool> ContentExists(string providerId);
Task<PlexServerContent> Get(string providerId);
Task<PlexServerContent> GetByKey(int key);
Task Update(PlexServerContent existingContent);
IQueryable<PlexEpisode> GetAllEpisodes();
Task<PlexEpisode> Add(PlexEpisode content);
Task<PlexEpisode> GetEpisodeByKey(int key);
Task AddRange(IEnumerable<PlexEpisode> content);
}
}