mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
New: Backend changes for new UI
This commit is contained in:
@@ -25,8 +25,9 @@ namespace NzbDrone.Core.History
|
||||
History Get(int historyId);
|
||||
List<History> Find(string downloadId, HistoryEventType eventType);
|
||||
List<History> FindByDownloadId(string downloadId);
|
||||
List<History> FindByMovieId(int movieId);
|
||||
List<History> GetByMovieId(int movieId, HistoryEventType? eventType);
|
||||
void UpdateMany(List<History> toUpdate);
|
||||
List<History> Since(DateTime date, HistoryEventType? eventType);
|
||||
}
|
||||
|
||||
public class HistoryService : IHistoryService,
|
||||
@@ -75,9 +76,9 @@ namespace NzbDrone.Core.History
|
||||
return _historyRepository.FindByDownloadId(downloadId);
|
||||
}
|
||||
|
||||
public List<History> FindByMovieId(int movieId)
|
||||
public List<History> GetByMovieId(int movieId, HistoryEventType? eventType)
|
||||
{
|
||||
return _historyRepository.FindByMovieId(movieId);
|
||||
return _historyRepository.GetByMovieId(movieId, eventType);
|
||||
}
|
||||
|
||||
public QualityModel GetBestQualityInHistory(Profile profile, int movieId)
|
||||
@@ -257,5 +258,10 @@ namespace NzbDrone.Core.History
|
||||
|
||||
_historyRepository.Insert(history);
|
||||
}
|
||||
|
||||
public List<History> Since(DateTime date, HistoryEventType? eventType)
|
||||
{
|
||||
return _historyRepository.Since(date, eventType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user