Files
deepdrft/DeepDrftPublic.Client/Services/IReleaseDataService.cs
T
daniel-c-harvey 737c423d9c feat: replace /archive with release-cardinal searchable browser (Phase 9 §8.H)
Retire the three-card overview for a search + medium + genre browser over all
releases. Adds q/genre filter params to the api/release paged read path,
mirroring the existing api/track/page TrackFilter pattern.
2026-06-13 20:47:50 -04:00

34 lines
1.3 KiB
C#

using DeepDrftModels.DTOs;
using Models.Common;
using NetBlocks.Models;
namespace DeepDrftPublic.Client.Services;
/// <summary>
/// Release read abstraction (Phase 9). Both SSR and WASM renders are served by
/// <c>ReleaseClientDataService</c> in this assembly, which delegates to
/// <see cref="Clients.ReleaseClient"/> over HTTP. Components inject this single seam
/// so they do not branch on render mode — mirrors <see cref="ITrackDataService"/>.
/// </summary>
public interface IReleaseDataService
{
/// <summary>Paged releases, optionally narrowed by medium ("cut" | "session" | "mix"), free-text search, and genre.</summary>
Task<ApiResult<PagedResult<ReleaseDto>>> GetPaged(
string? medium,
int page,
int pageSize,
string? sortColumn = null,
bool sortDescending = false,
string? search = null,
string? genre = null);
/// <summary>Single release with both metadata satellites (nulls for non-matching media).</summary>
Task<ApiResult<ReleaseDto>> GetById(long id);
/// <summary>
/// The Mix waveform datum. Success with a value when present; success with a null value when
/// no datum is stored (a valid state, not a failure); failure on any other transport error.
/// </summary>
Task<ApiResult<WaveformProfileDto?>> GetMixWaveform(long id);
}