Files
ersatztv/ErsatzTV.Core/Api/MediaCollections/MediaCollectionResponseModel.cs
T
timothyandClaude Opus 4.8 fecf16d3d2 feat(api): #288 wrap raw VMs, nullable-honest DTOs, search pageNum
24 #nullable enable flips across ErsatzTV.Core/Api; Collection/Schedule/
SmartCollection/Resolution VMs wrapped in ResponseModels (Version now
header-only, SPA-verified); pageNum threaded into GET /api/search.

Refs #288 #197

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

15 lines
620 B
C#

#nullable enable
using ErsatzTV.Core.Domain;
namespace ErsatzTV.Core.Api.MediaCollections;
// API response DTO for a manual collection. Exposes only the collection's own consumer-facing
// fields; deliberately drops the Application VM's MediaCardViewModel scaffolding (Title/Subtitle/
// SortTitle/Poster/HasMediaInfo) and the header-only optimistic-concurrency token (issue #253,
// #288). The ETag carries Version; the SPA reads it from the response header, never the body.
public record MediaCollectionResponseModel(
int Id,
string Name,
CollectionType CollectionType,
bool UseCustomPlaybackOrder);