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>
15 lines
620 B
C#
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);
|