Task A (#126): new non-polymorphic ScheduleItemResponseModel / ScheduleItemsResponseModel in Core/Api/Scheduling, plus shared NamedIdResponseModel. ScheduleItemResponseMapper flattens the One/Flood/Multiple/Duration VM hierarchy. ScheduleController GET/POST/PUT items now return the flat DTOs. Task B: GET /api/languages (LanguagesController + LanguageCodeResponseModel); GET /api/channels/music-video-credits-templates and GET /api/channels/stream-selectors; FillerKind added to FillerPresetResponseModel with optional ?fillerKind= filter on GET /api/filler-presets. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
13 lines
434 B
C#
13 lines
434 B
C#
#nullable enable
|
|
using System.Collections.Generic;
|
|
|
|
namespace ErsatzTV.Core.Api.Scheduling;
|
|
|
|
/// <summary>
|
|
/// GET envelope for a schedule's items. Carries the flat <see cref="ScheduleItemResponseModel" />
|
|
/// list plus a best-effort total runtime estimate (null when unbounded/unknown).
|
|
/// </summary>
|
|
public record ScheduleItemsResponseModel(
|
|
List<ScheduleItemResponseModel> Items,
|
|
TimeSpan? TotalDurationEstimate);
|