using DeepDrftModels.Enums; namespace DeepDrftModels.DTOs; /// /// Aggregate figures behind the public home hero stat row (NowPlayingStats). A single read returns /// everything the three cards need so the client makes one round-trip. The track-domain counts exclude /// soft-deleted rows; the play-domain figures (Phase 16) come from the event domain. /// public class HomeStatsDto { /// Total non-deleted tracks whose release is the Cut medium. The Studio Cuts card's primary figure. public int CutTrackCount { get; set; } /// /// Per-ReleaseType counts of non-deleted Cut releases. Only types with at least one release are /// present — a zero-count type is absent from the list (the card suppresses it). The Studio Cuts /// card's secondary breakdown. /// public List CutReleaseTypeCounts { get; set; } = []; /// Total non-deleted releases of the Mix medium. The Mixes card's primary figure ("N Sets"). public int MixReleaseCount { get; set; } /// /// Sum of DurationSeconds across all non-deleted tracks on Mix releases. Tracks with a null /// duration (not yet backfilled) contribute 0. The Mixes card's secondary figure, rendered hh:mm. /// public double MixRuntimeSeconds { get; set; } /// /// Site-wide total plays across all tracks — the sum of every play_counter's bucket columns /// (partial + sampled + complete), all-time (Phase 16 §5). The Plays card's primary odometer figure. /// Reads zero until the play-telemetry migration is applied; that is expected, not an error. /// public long TotalPlays { get; set; } /// /// Site-wide distinct anonymous listeners — distinct non-null anon_id across all play events, /// all-time (Phase 16 §3 / D7). The Plays card's secondary line ("N listeners"). Over-counts by /// design (one token per browser-install, honestly labelled "listeners"). /// public int UniqueListeners { get; set; } } /// One row of the Cut release-type breakdown: a ReleaseType and how many Cut releases have it. public class CutReleaseTypeCount { public ReleaseType ReleaseType { get; set; } public int Count { get; set; } }