* add chapter statistics and new filler options * refactor playout builder * more refactor prep for filler * rewrite schedulers * refactor collectionkey * add tail filler kind * migrate tail filler to filler preset * optionally show filler * fix playout detail row count * remove duration tail filler options * implement tail and fallback in flood scheduler * implement tail and fallback in one scheduler * implement tail and fallback in multiple scheduler * implement looping fallback filler * more duration tests * start to add post-roll filler to flood * rework playoutitem filler tagging * rework scheduler logging * calculate whether configured filler will fit * implement pre-roll and post-roll duration and count filler * improve duration filler calculation * add minutes to search index * update channel guide to work with new filler * add mid-roll filler * don't clone enumerators for filler calculations * support pre-roll and post-roll pad filler * implement mid-roll pad filler * allow clearing filler selections in schedule editor * fix tests * filler config validation * use consistent time zone for tests
38 lines
1.6 KiB
C#
38 lines
1.6 KiB
C#
using System;
|
|
using ErsatzTV.Core.Domain.Filler;
|
|
|
|
namespace ErsatzTV.Core.Domain
|
|
{
|
|
public abstract class ProgramScheduleItem
|
|
{
|
|
public int Id { get; set; }
|
|
public int Index { get; set; }
|
|
public StartType StartType => StartTime.HasValue ? StartType.Fixed : StartType.Dynamic;
|
|
public TimeSpan? StartTime { get; set; }
|
|
public ProgramScheduleItemCollectionType CollectionType { get; set; }
|
|
public GuideMode GuideMode { get; set; }
|
|
public string CustomTitle { get; set; }
|
|
public int ProgramScheduleId { get; set; }
|
|
public ProgramSchedule ProgramSchedule { get; set; }
|
|
public int? CollectionId { get; set; }
|
|
public Collection Collection { get; set; }
|
|
public int? MediaItemId { get; set; }
|
|
public MediaItem MediaItem { get; set; }
|
|
public int? MultiCollectionId { get; set; }
|
|
public MultiCollection MultiCollection { get; set; }
|
|
public int? SmartCollectionId { get; set; }
|
|
public SmartCollection SmartCollection { get; set; }
|
|
public PlaybackOrder PlaybackOrder { get; set; }
|
|
public int? PreRollFillerId { get; set; }
|
|
public FillerPreset PreRollFiller { get; set; }
|
|
public int? MidRollFillerId { get; set; }
|
|
public FillerPreset MidRollFiller { get; set; }
|
|
public int? PostRollFillerId { get; set; }
|
|
public FillerPreset PostRollFiller { get; set; }
|
|
public int? TailFillerId { get; set; }
|
|
public FillerPreset TailFiller { get; set; }
|
|
public int? FallbackFillerId { get; set; }
|
|
public FillerPreset FallbackFiller { get; set; }
|
|
}
|
|
}
|