mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1008 B
35 lines
1008 B
using ErsatzTV.Core.Domain; |
|
using ErsatzTV.Core.Domain.Scheduling; |
|
using ErsatzTV.Core.Scheduling; |
|
|
|
namespace ErsatzTV.Core.Interfaces.Scheduling; |
|
|
|
public interface IRerunHelper |
|
{ |
|
bool ClearHistory { get; set; } |
|
|
|
Task InitWithMediaItems( |
|
int playoutId, |
|
CollectionKey collectionKey, |
|
List<MediaItem> mediaItems, |
|
CancellationToken cancellationToken); |
|
|
|
IMediaCollectionEnumerator CreateEnumerator( |
|
CollectionKey collectionKey, |
|
CollectionEnumeratorState state, |
|
CancellationToken cancellationToken); |
|
|
|
bool IsFirstRun(CollectionKey collectionKey, int mediaItemId); |
|
|
|
bool IsRerun(CollectionKey collectionKey, int mediaItemId); |
|
|
|
int FirstRunCount(CollectionKey collectionKey); |
|
|
|
int RerunCount(CollectionKey collectionKey); |
|
|
|
void AddToHistory(CollectionKey collectionKey, int mediaItemId, DateTimeOffset scheduledAt); |
|
|
|
System.Collections.Generic.HashSet<int> GetHistoryToRemove(); |
|
|
|
List<RerunHistory> GetHistoryToAdd(); |
|
}
|
|
|