Wire NowPlayingStats to live aggregates: add SQL track duration column, stats endpoint, and duration backfill
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using DeepDrftModels.DTOs;
|
||||
using DeepDrftPublic.Client.Clients;
|
||||
using NetBlocks.Models;
|
||||
|
||||
namespace DeepDrftPublic.Client.Services;
|
||||
|
||||
/// <summary>
|
||||
/// <see cref="IStatsDataService"/> backed by <see cref="StatsClient"/> (HTTP to the <c>DeepDrft.API</c>
|
||||
/// backend). Used on both the SSR prerender and WASM interactive passes — the stats read surface is
|
||||
/// HTTP-only, so there is no separate in-process implementation.
|
||||
/// </summary>
|
||||
public class StatsClientDataService : IStatsDataService
|
||||
{
|
||||
private readonly StatsClient _statsClient;
|
||||
|
||||
public StatsClientDataService(StatsClient statsClient)
|
||||
{
|
||||
_statsClient = statsClient;
|
||||
}
|
||||
|
||||
public Task<ApiResult<HomeStatsDto>> GetHomeStats() => _statsClient.GetHomeStats();
|
||||
}
|
||||
Reference in New Issue
Block a user