2018-12-11 04:41:15 +00:00
|
|
|
|
using Roadie.Library;
|
|
|
|
|
using Roadie.Library.Models.Collections;
|
2018-11-07 04:33:22 +00:00
|
|
|
|
using Roadie.Library.Models.Pagination;
|
2018-11-14 23:18:02 +00:00
|
|
|
|
using Roadie.Library.Models.Users;
|
|
|
|
|
using System;
|
2018-12-11 04:41:15 +00:00
|
|
|
|
using System.Collections.Generic;
|
2018-11-14 23:18:02 +00:00
|
|
|
|
using System.Threading.Tasks;
|
2018-11-07 04:33:22 +00:00
|
|
|
|
|
|
|
|
|
namespace Roadie.Api.Services
|
|
|
|
|
{
|
|
|
|
|
public interface ICollectionService
|
|
|
|
|
{
|
2019-01-26 20:55:58 +00:00
|
|
|
|
OperationResult<Collection> Add(User roadieUser);
|
|
|
|
|
|
2019-05-29 22:25:40 +00:00
|
|
|
|
Task<OperationResult<Collection>> ById(User roadieUser, Guid id, IEnumerable<string> includes = null);
|
2019-01-26 20:55:58 +00:00
|
|
|
|
|
|
|
|
|
Task<OperationResult<bool>> DeleteCollection(User user, Guid id);
|
|
|
|
|
|
2019-06-30 22:14:36 +00:00
|
|
|
|
Task<PagedResult<CollectionList>> List(User roadieUser, PagedRequest request, bool? doRandomize = false,
|
|
|
|
|
Guid? releaseId = null, Guid? artistId = null);
|
2019-05-29 22:25:40 +00:00
|
|
|
|
|
|
|
|
|
Task<OperationResult<bool>> UpdateCollection(User roadieUser, Collection collection);
|
2018-11-07 04:33:22 +00:00
|
|
|
|
}
|
|
|
|
|
}
|