mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 13:53:19 -07:00
DAMN! #435 that's a lot of code!
This commit is contained in:
parent
868301f552
commit
d59d64234f
40 changed files with 1758 additions and 115 deletions
24
Ombi.Services/Jobs/Interfaces/IEmbyAvailabilityChecker.cs
Normal file
24
Ombi.Services/Jobs/Interfaces/IEmbyAvailabilityChecker.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Ombi.Store.Models.Emby;
|
||||
using Quartz;
|
||||
|
||||
namespace Ombi.Services.Jobs
|
||||
{
|
||||
public interface IEmbyAvailabilityChecker
|
||||
{
|
||||
void CheckAndUpdateAll();
|
||||
void Execute(IJobExecutionContext context);
|
||||
IEnumerable<EmbyContent> GetEmbyMovies(IEnumerable<EmbyContent> content);
|
||||
IEnumerable<EmbyContent> GetEmbyMusic(IEnumerable<EmbyContent> content);
|
||||
IEnumerable<EmbyContent> GetEmbyTvShows(IEnumerable<EmbyContent> content);
|
||||
Task<IEnumerable<EmbyEpisodes>> GetEpisodes();
|
||||
Task<IEnumerable<EmbyEpisodes>> GetEpisodes(int theTvDbId);
|
||||
EmbyContent GetMovie(EmbyContent[] embyMovies, string title, string year, string providerId);
|
||||
EmbyContent GetTvShow(EmbyContent[] embyShows, string title, string year, string providerId, int[] seasons = null);
|
||||
bool IsEpisodeAvailable(string theTvDbId, int season, int episode);
|
||||
bool IsMovieAvailable(EmbyContent[] embyMovies, string title, string year, string providerId);
|
||||
bool IsTvShowAvailable(EmbyContent[] embyShows, string title, string year, string providerId, int[] seasons = null);
|
||||
void Start();
|
||||
}
|
||||
}
|
14
Ombi.Services/Jobs/Interfaces/IEmbyContentCacher.cs
Normal file
14
Ombi.Services/Jobs/Interfaces/IEmbyContentCacher.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System.Collections.Generic;
|
||||
using Ombi.Api.Models.Emby;
|
||||
using Quartz;
|
||||
|
||||
namespace Ombi.Services.Jobs.Interfaces
|
||||
{
|
||||
public interface IEmbyContentCacher
|
||||
{
|
||||
void CacheContent();
|
||||
void Execute(IJobExecutionContext context);
|
||||
List<EmbyMovieItem> GetMovies();
|
||||
List<EmbySeriesItem> GetTvShows();
|
||||
}
|
||||
}
|
12
Ombi.Services/Jobs/Interfaces/IEmbyEpisodeCacher.cs
Normal file
12
Ombi.Services/Jobs/Interfaces/IEmbyEpisodeCacher.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using Ombi.Core.SettingModels;
|
||||
using Quartz;
|
||||
|
||||
namespace Ombi.Services.Jobs.Interfaces
|
||||
{
|
||||
public interface IEmbyEpisodeCacher
|
||||
{
|
||||
void CacheEpisodes(EmbySettings settings);
|
||||
void Execute(IJobExecutionContext context);
|
||||
void Start();
|
||||
}
|
||||
}
|
14
Ombi.Services/Jobs/Interfaces/IFaultQueueHandler.cs
Normal file
14
Ombi.Services/Jobs/Interfaces/IFaultQueueHandler.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System.Collections.Generic;
|
||||
using Ombi.Core.SettingModels;
|
||||
using Ombi.Store;
|
||||
using Quartz;
|
||||
|
||||
namespace Ombi.Services.Jobs
|
||||
{
|
||||
public interface IFaultQueueHandler
|
||||
{
|
||||
void Execute(IJobExecutionContext context);
|
||||
bool ShouldAutoApprove(RequestType requestType, PlexRequestSettings prSettings, List<string> username);
|
||||
void Start();
|
||||
}
|
||||
}
|
12
Ombi.Services/Jobs/Interfaces/IPlexEpisodeCacher.cs
Normal file
12
Ombi.Services/Jobs/Interfaces/IPlexEpisodeCacher.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using Ombi.Core.SettingModels;
|
||||
using Quartz;
|
||||
|
||||
namespace Ombi.Services.Jobs
|
||||
{
|
||||
public interface IPlexEpisodeCacher
|
||||
{
|
||||
void CacheEpisodes(PlexSettings settings);
|
||||
void Execute(IJobExecutionContext context);
|
||||
void Start();
|
||||
}
|
||||
}
|
10
Ombi.Services/Jobs/Interfaces/IPlexUserChecker.cs
Normal file
10
Ombi.Services/Jobs/Interfaces/IPlexUserChecker.cs
Normal file
|
@ -0,0 +1,10 @@
|
|||
using Quartz;
|
||||
|
||||
namespace Ombi.Services.Jobs
|
||||
{
|
||||
public interface IPlexUserChecker
|
||||
{
|
||||
void Execute(IJobExecutionContext context);
|
||||
void Start();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue