New: Backend changes for new UI

This commit is contained in:
Qstick
2018-11-23 02:03:32 -05:00
parent e9eebd3ce6
commit 65efa15551
485 changed files with 11177 additions and 2233 deletions

View File

@@ -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);
}
}
}