roadie/Roadie.Api.Services/IUserService.cs

50 lines
2.2 KiB
C#
Raw 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
{
2019-08-02 20:59:24 +00:00
Task<OperationResult<User>> ById(User user, Guid id, IEnumerable<string> includes, bool isAccountSettingsEdit = false);
2018-12-16 23:37:19 +00:00
Task<PagedResult<UserList>> List(PagedRequest request);
2018-12-12 14:31:39 +00:00
Task<OperationResult<bool>> SetArtistBookmark(Guid artistId, User roadieUser, bool isBookmarked);
2018-12-24 22:35:59 +00:00
Task<OperationResult<bool>> SetArtistDisliked(Guid artistId, User roadieUser, bool isDisliked);
2018-12-12 14:31:39 +00:00
2019-01-08 22:40:26 +00:00
Task<OperationResult<bool>> SetArtistFavorite(Guid artistId, User roadieUser, bool isFavorite);
2018-12-12 14:31:39 +00:00
Task<OperationResult<short>> SetArtistRating(Guid artistId, User roadieUser, short rating);
Task<OperationResult<bool>> SetCollectionBookmark(Guid collectionId, User roadieUser, bool isBookmarked);
Task<OperationResult<bool>> SetLabelBookmark(Guid labelId, User roadieUser, bool isBookmarked);
Task<OperationResult<bool>> SetPlaylistBookmark(Guid playlistId, User roadieUser, bool isBookmarked);
Task<OperationResult<bool>> SetReleaseBookmark(Guid releaseid, User roadieUser, bool isBookmarked);
2018-12-24 22:35:59 +00:00
Task<OperationResult<bool>> SetReleaseDisliked(Guid releaseId, User roadieUser, bool isDisliked);
2018-12-12 14:31:39 +00:00
2019-01-08 22:40:26 +00:00
Task<OperationResult<bool>> SetReleaseFavorite(Guid releaseId, User roadieUser, bool isFavorite);
2018-12-12 14:31:39 +00:00
Task<OperationResult<short>> SetReleaseRating(Guid releaseId, User roadieUser, short rating);
Task<OperationResult<bool>> SetTrackBookmark(Guid trackId, User roadieUser, bool isBookmarked);
2019-01-05 22:40:33 +00:00
Task<OperationResult<bool>> SetTrackDisliked(Guid trackId, User roadieUser, bool isDisliked);
2019-01-08 22:40:26 +00:00
2019-01-05 22:40:33 +00:00
Task<OperationResult<bool>> SetTrackFavorite(Guid releaseId, User roadieUser, bool isFavorite);
2018-12-16 23:37:19 +00:00
2019-01-08 22:40:26 +00:00
Task<OperationResult<short>> SetTrackRating(Guid trackId, User roadieUser, short rating);
Task<OperationResult<bool>> UpdateIntegrationGrant(Guid userId, string integrationName, string token);
2019-06-30 22:14:36 +00:00
Task<OperationResult<bool>> UpdateProfile(User userPerformingUpdate, User userBeingUpdatedModel);
}
}