roadie/Roadie.Api.Services/ITrackService.cs

21 lines
736 B
C#
Raw Normal View History

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;
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
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
}
}