Files
ersatztv/ErsatzTV.Core/Api/Scheduling/ScheduleItemsResponseModel.cs
T
timothyandClaude Fable 5 d7782dccac feat(api): flat schedule-item DTO + discovery endpoints (#126 #207 #212)
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>
2026-07-10 23:40:47 +02:00

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