2018-12-09 17:58:31 +00:00
|
|
|
|
using Roadie.Library;
|
|
|
|
|
using Roadie.Library.Models.Pagination;
|
2018-11-07 04:33:22 +00:00
|
|
|
|
using Roadie.Library.Models.Playlists;
|
2018-11-15 00:16:25 +00:00
|
|
|
|
using Roadie.Library.Models.Users;
|
2018-11-14 23:18:02 +00:00
|
|
|
|
using System;
|
2018-12-09 17:58:31 +00:00
|
|
|
|
using System.Collections.Generic;
|
2018-11-14 23:18:02 +00:00
|
|
|
|
using System.Threading.Tasks;
|
2018-12-30 20:57:06 +00:00
|
|
|
|
using data = Roadie.Library.Data;
|
2018-11-07 04:33:22 +00:00
|
|
|
|
|
|
|
|
|
namespace Roadie.Api.Services
|
|
|
|
|
{
|
|
|
|
|
public interface IPlaylistService
|
|
|
|
|
{
|
2018-12-30 20:57:06 +00:00
|
|
|
|
Task<OperationResult<PlaylistList>> AddNewPlaylist(User user, Playlist model);
|
|
|
|
|
|
|
|
|
|
Task<OperationResult<bool>> AddTracksToPlaylist(data.Playlist playlist, IEnumerable<Guid> trackIds);
|
|
|
|
|
|
2018-12-09 17:58:31 +00:00
|
|
|
|
Task<OperationResult<Playlist>> ById(User roadieUser, Guid id, IEnumerable<string> includes = null);
|
|
|
|
|
|
2018-12-31 05:16:42 +00:00
|
|
|
|
Task<OperationResult<bool>> DeletePlaylist(User user, Guid id);
|
|
|
|
|
|
2018-11-24 01:46:12 +00:00
|
|
|
|
Task<PagedResult<PlaylistList>> List(PagedRequest request, User roadieUser = null);
|
2018-12-30 20:57:06 +00:00
|
|
|
|
|
|
|
|
|
Task<OperationResult<bool>> ReorderPlaylist(data.Playlist playlist);
|
2019-03-01 04:10:44 +00:00
|
|
|
|
|
|
|
|
|
Task<OperationResult<bool>> UpdatePlaylist(User user, Playlist label);
|
|
|
|
|
|
|
|
|
|
Task<OperationResult<bool>> UpdatePlaylistTracks(User user, PlaylistTrackModifyRequest request);
|
2018-11-07 04:33:22 +00:00
|
|
|
|
}
|
|
|
|
|
}
|