2018-11-17 02:14:32 +00:00
|
|
|
|
using Roadie.Library;
|
|
|
|
|
using Roadie.Library.Models;
|
2018-11-12 00:28:37 +00:00
|
|
|
|
using Roadie.Library.Models.Pagination;
|
|
|
|
|
using Roadie.Library.Models.Users;
|
2018-11-15 00:16:25 +00:00
|
|
|
|
using System;
|
2018-11-17 02:14:32 +00:00
|
|
|
|
using System.Collections.Generic;
|
2018-11-14 23:18:02 +00:00
|
|
|
|
using System.Threading.Tasks;
|
2018-11-12 00:28:37 +00:00
|
|
|
|
|
|
|
|
|
namespace Roadie.Api.Services
|
|
|
|
|
{
|
|
|
|
|
public interface ITrackService
|
|
|
|
|
{
|
2018-11-17 02:14:32 +00:00
|
|
|
|
Task<OperationResult<Track>> ById(User roadieUser, Guid id, IEnumerable<string> includes);
|
|
|
|
|
|
2018-11-25 20:43:52 +00:00
|
|
|
|
Task<Library.Models.Pagination.PagedResult<TrackList>> List(PagedRequest request, User roadieUser, bool? doRandomize = false, Guid? releaseId = null);
|
2018-11-17 02:14:32 +00:00
|
|
|
|
|
2019-01-13 17:27:41 +00:00
|
|
|
|
OperationResult<Track> StreamCheckAndInfo(User roadieUser, Guid id);
|
|
|
|
|
|
2018-11-17 02:14:32 +00:00
|
|
|
|
Task<OperationResult<TrackStreamInfo>> TrackStreamInfo(Guid trackId, long beginBytes, long endBytes);
|
2018-11-12 00:28:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|