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>
9 lines
338 B
C#
9 lines
338 B
C#
namespace ErsatzTV.Core.Api;
|
|
|
|
/// <summary>
|
|
/// A lightweight {id, name} pair used when an API response needs to embed a reference to a
|
|
/// named entity (e.g. a schedule item's watermarks or graphics elements) without projecting
|
|
/// the full entity DTO.
|
|
/// </summary>
|
|
public record NamedIdResponseModel(int Id, string Name);
|