roadie/Roadie.Api.Services/IReleaseService.cs

22 lines
964 B
C#
Raw Normal View History

2018-12-21 22:59:33 +00:00
using Microsoft.AspNetCore.Http;
using Roadie.Library;
2018-11-12 00:28:37 +00:00
using Roadie.Library.Models.Pagination;
using Roadie.Library.Models.Releases;
using Roadie.Library.Models.Users;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
2018-11-12 00:28:37 +00:00
namespace Roadie.Api.Services
{
public interface IReleaseService
{
2018-11-14 03:19:28 +00:00
Task<OperationResult<Release>> ById(User roadieUser, Guid id, IEnumerable<string> includes = null);
2018-12-06 02:11:42 +00:00
Task<PagedResult<ReleaseList>> List(User user, PagedRequest request, bool? doRandomize = false, IEnumerable<string> includes = null);
Task<FileOperationResult<byte[]>> ReleaseZipped(User roadieUser, Guid id);
2018-12-21 22:59:33 +00:00
Task<OperationResult<Library.Models.Image>> SetReleaseImageByUrl(User user, Guid id, string imageUrl);
Task<OperationResult<Library.Models.Image>> UploadReleaseImage(User user, Guid id, IFormFile file);
2018-12-23 21:36:38 +00:00
Task<OperationResult<bool>> UpdateRelease(User user, Release release);
2018-11-12 00:28:37 +00:00
}
}