mirror of
https://github.com/sphildreth/roadie
synced 2024-11-10 06:44:12 +00:00
23 lines
No EOL
826 B
C#
23 lines
No EOL
826 B
C#
using Roadie.Library;
|
|
using Roadie.Library.Models;
|
|
using Roadie.Library.Models.Pagination;
|
|
using Roadie.Library.Models.Users;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Roadie.Api.Services
|
|
{
|
|
public interface ITrackService
|
|
{
|
|
Task<OperationResult<Track>> ByIdAsyncAsync(User roadieUser, Guid id, IEnumerable<string> includes);
|
|
|
|
Task<PagedResult<TrackList>> ListAsync(PagedRequest request, User roadieUser, bool? doRandomize = false, Guid? releaseId = null);
|
|
|
|
OperationResult<Track> StreamCheckAndInfo(User roadieUser, Guid id);
|
|
|
|
Task<OperationResult<TrackStreamInfo>> TrackStreamInfoAsync(Guid trackId, long beginBytes, long endBytes, User roadieUser);
|
|
|
|
Task<OperationResult<bool>> UpdateTrackAsync(User user, Track track);
|
|
}
|
|
} |