2018-12-26 21:18:51 +00:00
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
|
using Roadie.Library;
|
2019-07-07 03:16:33 +00:00
|
|
|
|
using Roadie.Library.Identity;
|
2018-11-06 04:31:25 +00:00
|
|
|
|
using Roadie.Library.Models;
|
|
|
|
|
using Roadie.Library.Models.Pagination;
|
2018-11-06 21:55:31 +00:00
|
|
|
|
using Roadie.Library.Models.Users;
|
2018-11-14 23:18:02 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
2018-11-06 04:31:25 +00:00
|
|
|
|
|
|
|
|
|
namespace Roadie.Api.Services
|
|
|
|
|
{
|
|
|
|
|
public interface IArtistService
|
|
|
|
|
{
|
2019-07-07 03:16:33 +00:00
|
|
|
|
Task<OperationResult<Artist>> ById(User user, Guid id, IEnumerable<string> includes);
|
2018-11-14 23:18:02 +00:00
|
|
|
|
|
2019-11-09 17:43:39 +00:00
|
|
|
|
Task<OperationResult<bool>> Delete(ApplicationUser user, Library.Data.Artist Artist, bool deleteFolder);
|
2019-01-08 22:40:26 +00:00
|
|
|
|
|
2019-07-07 03:16:33 +00:00
|
|
|
|
Task<PagedResult<ArtistList>> List(User user, PagedRequest request, bool? doRandomize = false, bool? onlyIncludeWithReleases = true);
|
2019-05-29 22:25:40 +00:00
|
|
|
|
|
2019-07-07 03:16:33 +00:00
|
|
|
|
Task<OperationResult<bool>> MergeArtists(ApplicationUser user, Guid artistToMergeId, Guid artistToMergeIntoId);
|
2019-01-08 22:40:26 +00:00
|
|
|
|
|
2019-07-07 03:16:33 +00:00
|
|
|
|
Task<OperationResult<bool>> RefreshArtistMetadata(ApplicationUser user, Guid ArtistId);
|
2019-01-08 22:40:26 +00:00
|
|
|
|
|
2019-07-07 03:16:33 +00:00
|
|
|
|
Task<OperationResult<bool>> ScanArtistReleasesFolders(ApplicationUser user, Guid artistId, string destinationFolder, bool doJustInfo);
|
|
|
|
|
|
|
|
|
|
Task<OperationResult<Image>> SetReleaseImageByUrl(ApplicationUser user, Guid id, string imageUrl);
|
|
|
|
|
|
|
|
|
|
Task<OperationResult<bool>> UpdateArtist(ApplicationUser user, Artist artist);
|
|
|
|
|
|
|
|
|
|
Task<OperationResult<Image>> UploadArtistImage(ApplicationUser user, Guid id, IFormFile file);
|
2018-11-06 04:31:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|