roadie/Roadie.Api.Services/IAdminService.cs

56 lines
2.4 KiB
C#
Raw Normal View History

2018-12-15 16:53:14 +00:00
using Microsoft.AspNetCore.Identity;
using Roadie.Library;
2018-12-14 03:52:14 +00:00
using Roadie.Library.Identity;
using System;
2019-03-09 16:33:19 +00:00
using System.Collections.Generic;
2018-12-14 03:52:14 +00:00
using System.Threading.Tasks;
namespace Roadie.Api.Services
{
public interface IAdminService
{
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> DeleteArtist(User user, Guid artistId, bool deleteFolder);
2019-01-08 22:40:26 +00:00
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> DeleteArtistReleases(User user, Guid artistId, bool doDeleteFiles = false);
2019-01-08 22:40:26 +00:00
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> DeleteArtistSecondaryImage(User user, Guid artistId, int index);
2019-05-29 22:25:40 +00:00
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> DeleteGenre(User user, Guid genreId);
2019-08-02 20:59:24 +00:00
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> DeleteLabel(User user, Guid labelId);
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> DeleteRelease(User user, Guid releaseId, bool? doDeleteFiles);
2019-01-08 22:40:26 +00:00
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> DeleteReleaseSecondaryImage(User user, Guid releaseId, int index);
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> DeleteTracks(User user, IEnumerable<Guid> trackIds, bool? doDeleteFile);
2019-02-06 03:22:38 +00:00
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> DeleteUser(User applicationUser, Guid id);
2019-05-29 22:25:40 +00:00
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> DoInitialSetup(User user, UserManager<User> userManager);
2019-01-08 22:40:26 +00:00
2019-11-28 17:38:26 +00:00
Task<OperationResult<Dictionary<string, List<string>>>> MissingCollectionReleases(User user);
2019-05-29 22:25:40 +00:00
void PerformStartUpTasks();
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> ScanAllCollections(User user, bool isReadOnly = false, bool doPurgeFirst = false);
2019-01-22 00:04:58 +00:00
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> ScanArtist(User user, Guid artistId, bool isReadOnly = false);
2019-01-08 22:40:26 +00:00
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> ScanArtists(User user, IEnumerable<Guid> artistIds, bool isReadOnly = false);
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> ScanCollection(User user, Guid collectionId, bool isReadOnly = false, bool doPurgeFirst = false, bool doUpdateRanks = true);
2019-01-22 00:04:58 +00:00
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> ScanInboundFolder(User user, bool isReadOnly = false);
2019-01-08 22:40:26 +00:00
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> ScanLibraryFolder(User user, bool isReadOnly = false);
2019-01-08 22:40:26 +00:00
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> ScanRelease(User user, Guid releaseIds, bool isReadOnly = false, bool wasDoneForInvalidTrackPlay = false);
2019-08-06 13:50:25 +00:00
2019-11-28 17:38:26 +00:00
Task<OperationResult<bool>> ScanReleases(User user, IEnumerable<Guid> releaseId, bool isReadOnly = false, bool wasDoneForInvalidTrackPlay = false);
Task<OperationResult<bool>> UpdateInviteTokenUsed(Guid? tokenId);
Task<OperationResult<bool>> ValidateInviteToken(Guid? tokenId);
2018-12-14 03:52:14 +00:00
}
2019-01-08 22:40:26 +00:00
}