feat: Stream Now instant-play of a random track from the nav button
This commit is contained in:
@@ -13,6 +13,12 @@ public interface ITrackService
|
||||
{
|
||||
Task<ResultContainer<TrackDto?>> GetById(long id);
|
||||
Task<ResultContainer<TrackDto?>> GetByEntryKey(string entryKey);
|
||||
|
||||
/// <summary>
|
||||
/// Returns a single track chosen uniformly at random, or null when the library is empty
|
||||
/// (a valid state, not a failure). Backs the public "Stream Now" instant-play feature.
|
||||
/// </summary>
|
||||
Task<ResultContainer<TrackDto?>> GetRandom(CancellationToken cancellationToken = default);
|
||||
Task<ResultContainer<List<TrackDto>>> GetAll();
|
||||
Task<ResultContainer<PagedResult<TrackDto>>> GetPaged(int pageNumber, int pageSize, string? sortColumn, bool sortDescending, CancellationToken cancellationToken = default);
|
||||
Task<ResultContainer<TrackDto>> Create(TrackDto newTrack);
|
||||
|
||||
Reference in New Issue
Block a user