Files
ersatztv/ErsatzTV.Core/Api/MediaCollections/MultiCollectionResponseModel.cs
T
timothyandClaude Opus 4.8 a496dad9c9 feat(api): REST CRUD for multi-collections and rerun-collections (#151, #152)
Adds MultiCollectionController + RerunCollectionController (list/get/create/update/
delete) over the existing MediatR handlers, with response/request DTOs, controller +
contract tests, regenerated OpenAPI + TS types, and thin SPA api-client modules. SPA
editor screens are a follow-up. Rerun request DTO resolves the chosen entity id into
the minimal VM the handler reads (documented inline).

Refs #151, #152

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-08 18:18:32 +02:00

21 lines
511 B
C#

#nullable enable
using ErsatzTV.Core.Domain;
namespace ErsatzTV.Core.Api.MediaCollections;
public record MultiCollectionResponseModel(
int Id,
string Name,
List<MultiCollectionItemResponseModel> Items);
public record MultiCollectionItemResponseModel(
int? CollectionId,
int? SmartCollectionId,
string Name,
bool ScheduleAsGroup,
PlaybackOrder PlaybackOrder);
public record PagedMultiCollectionsResponseModel(
int TotalCount,
List<MultiCollectionResponseModel> Page);