getHistory method
Future<SonarrHistory>
getHistory({
- required SonarrHistorySortKey sortKey,
- int? page,
- int? pageSize,
- SonarrSortDirection? sortDirection,
- int? episodeId,
Handler for history.
Gets history (grabs/failures/completed).
Required Parameters:
sortKey: SonarrHistorySortKey object containing the sorting key
Optional Parameters:
page: The page of history to fetch (Default: 1)pageSize: The amount of items per page to fetchsortDirection: SonarrSortDirection object containing the sorting directionepisodeId: The episode ID to filter results for
Implementation
Future<SonarrHistory> getHistory({
required SonarrHistorySortKey sortKey,
int? page,
int? pageSize,
SonarrSortDirection? sortDirection,
int? episodeId,
}) async => _commandGetHistory(
_client,
sortKey: sortKey,
page: page,
pageSize: pageSize,
sortDirection: sortDirection,
episodeId: episodeId,
);