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