roadie/Roadie.Api.Services/IUserService.cs

52 lines
2.4 KiB
C#
Raw Permalink Normal View History

2018-12-01 03:22:35 +00:00
using Roadie.Library;
using Roadie.Library.Models.Pagination;
using Roadie.Library.Models.Users;
2018-12-01 03:22:35 +00:00
using System;
2019-01-10 23:40:04 +00:00
using System.Collections.Generic;
2018-11-16 03:37:00 +00:00
using System.Threading.Tasks;
namespace Roadie.Api.Services
{
public interface IUserService
{
Task<OperationResult<User>> ByIdAsync(User user, Guid id, IEnumerable<string> includes, bool isAccountSettingsEdit = false);
2018-12-16 23:37:19 +00:00
Task<OperationResult<bool>> DeleteAllBookmarksAsync(User roadieUser);
2018-12-12 14:31:39 +00:00
Task<PagedResult<UserList>> ListAsync(PagedRequest request);
Task<OperationResult<bool>> SetArtistBookmarkAsync(Guid artistId, User roadieUser, bool isBookmarked);
2018-12-12 14:31:39 +00:00
Task<OperationResult<bool>> SetArtistDislikedAsync(Guid artistId, User roadieUser, bool isDisliked);
2018-12-12 14:31:39 +00:00
Task<OperationResult<bool>> SetArtistFavoriteAsync(Guid artistId, User roadieUser, bool isFavorite);
2019-01-08 22:40:26 +00:00
Task<OperationResult<short>> SetArtistRatingAsync(Guid artistId, User roadieUser, short rating);
2018-12-12 14:31:39 +00:00
Task<OperationResult<bool>> SetCollectionBookmarkAsync(Guid collectionId, User roadieUser, bool isBookmarked);
2018-12-12 14:31:39 +00:00
Task<OperationResult<bool>> SetLabelBookmarkAsync(Guid labelId, User roadieUser, bool isBookmarked);
2018-12-12 14:31:39 +00:00
Task<OperationResult<bool>> SetPlaylistBookmarkAsync(Guid playlistId, User roadieUser, bool isBookmarked);
2018-12-12 14:31:39 +00:00
Task<OperationResult<bool>> SetReleaseBookmarkAsync(Guid releaseid, User roadieUser, bool isBookmarked);
2018-12-12 14:31:39 +00:00
Task<OperationResult<bool>> SetReleaseDislikedAsync(Guid releaseId, User roadieUser, bool isDisliked);
2018-12-12 14:31:39 +00:00
Task<OperationResult<bool>> SetReleaseFavoriteAsync(Guid releaseId, User roadieUser, bool isFavorite);
2019-01-08 22:40:26 +00:00
Task<OperationResult<short>> SetReleaseRatingAsync(Guid releaseId, User roadieUser, short rating);
2018-12-12 14:31:39 +00:00
Task<OperationResult<bool>> SetTrackBookmarkAsync(Guid trackId, User roadieUser, bool isBookmarked);
2018-12-12 14:31:39 +00:00
Task<OperationResult<bool>> SetTrackDislikedAsync(Guid trackId, User roadieUser, bool isDisliked);
2019-01-08 22:40:26 +00:00
Task<OperationResult<bool>> SetTrackFavoriteAsync(Guid releaseId, User roadieUser, bool isFavorite);
2018-12-16 23:37:19 +00:00
Task<OperationResult<short>> SetTrackRatingAsync(Guid trackId, User roadieUser, short rating);
2019-01-08 22:40:26 +00:00
Task<OperationResult<bool>> UpdateIntegrationGrantAsync(Guid userId, string integrationName, string token);
2019-06-30 22:14:36 +00:00
Task<OperationResult<bool>> UpdateProfileAsync(User userPerformingUpdate, User userBeingUpdatedModel);
}
}