mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 15:56:05 -07:00
!cosmetic removed unused dependancy
This commit is contained in:
parent
77e227a36b
commit
f8054317ab
1 changed files with 4 additions and 29 deletions
|
@ -9,7 +9,6 @@ using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Security.Principal;
|
using System.Security.Principal;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Identity;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Ombi.Core.Authentication;
|
using Ombi.Core.Authentication;
|
||||||
using Ombi.Core.Engine.Interfaces;
|
using Ombi.Core.Engine.Interfaces;
|
||||||
|
@ -25,20 +24,17 @@ namespace Ombi.Core.Engine
|
||||||
public class TvRequestEngine : BaseMediaEngine, ITvRequestEngine
|
public class TvRequestEngine : BaseMediaEngine, ITvRequestEngine
|
||||||
{
|
{
|
||||||
public TvRequestEngine(ITvMazeApi tvApi, IRequestServiceMain requestService, IPrincipal user,
|
public TvRequestEngine(ITvMazeApi tvApi, IRequestServiceMain requestService, IPrincipal user,
|
||||||
INotificationHelper helper, IMapper map,
|
INotificationHelper helper, IRuleEvaluator rule, OmbiUserManager manager,
|
||||||
IRuleEvaluator rule, OmbiUserManager manager,
|
|
||||||
ITvSender sender, IAuditRepository audit) : base(user, requestService, rule, manager)
|
ITvSender sender, IAuditRepository audit) : base(user, requestService, rule, manager)
|
||||||
{
|
{
|
||||||
TvApi = tvApi;
|
TvApi = tvApi;
|
||||||
NotificationHelper = helper;
|
NotificationHelper = helper;
|
||||||
Mapper = map;
|
|
||||||
TvSender = sender;
|
TvSender = sender;
|
||||||
Audit = audit;
|
Audit = audit;
|
||||||
}
|
}
|
||||||
|
|
||||||
private INotificationHelper NotificationHelper { get; }
|
private INotificationHelper NotificationHelper { get; }
|
||||||
private ITvMazeApi TvApi { get; }
|
private ITvMazeApi TvApi { get; }
|
||||||
private IMapper Mapper { get; }
|
|
||||||
private ITvSender TvSender { get; }
|
private ITvSender TvSender { get; }
|
||||||
private IAuditRepository Audit { get; }
|
private IAuditRepository Audit { get; }
|
||||||
|
|
||||||
|
@ -119,7 +115,7 @@ namespace Ombi.Core.Engine
|
||||||
ErrorMessage = "This has already been requested"
|
ErrorMessage = "This has already been requested"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return await AddExistingRequest(tvBuilder.ChildRequest, existingRequest);
|
return await AddExistingRequest(tvBuilder.ChildRequest, existingRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is a new request
|
// This is a new request
|
||||||
|
@ -296,7 +292,7 @@ namespace Ombi.Core.Engine
|
||||||
var result = await TvSender.Send(model);
|
var result = await TvSender.Send(model);
|
||||||
if (result.Success)
|
if (result.Success)
|
||||||
{
|
{
|
||||||
return new RequestEngineResult { RequestAdded = true };
|
return new RequestEngineResult {RequestAdded = true};
|
||||||
}
|
}
|
||||||
return new RequestEngineResult
|
return new RequestEngineResult
|
||||||
{
|
{
|
||||||
|
@ -304,28 +300,7 @@ namespace Ombi.Core.Engine
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return new RequestEngineResult { RequestAdded = true };
|
return new RequestEngineResult {RequestAdded = true};
|
||||||
}
|
}
|
||||||
|
|
||||||
//public async Task<IEnumerable<TvRequests>> GetApprovedRequests()
|
|
||||||
//{
|
|
||||||
// var allRequests = TvRepository.Get();
|
|
||||||
|
|
||||||
|
|
||||||
//}
|
|
||||||
|
|
||||||
//public async Task<IEnumerable<TvRequests>> GetNewRequests()
|
|
||||||
//{
|
|
||||||
// //var allRequests = await TvRepository.GetAllAsync();
|
|
||||||
// //return allRequests.Where(x => !x.Approved && !x.Available);
|
|
||||||
// return null;
|
|
||||||
//}
|
|
||||||
|
|
||||||
//public async Task<IEnumerable<TvRequests>> GetAvailableRequests()
|
|
||||||
//{
|
|
||||||
// //var allRequests = await TvRepository.GetAllAsync();
|
|
||||||
// //return allRequests.Where(x => x.Available);
|
|
||||||
// return null;
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue