2018-11-11 20:10:10 +00:00
|
|
|
|
using Microsoft.Net.Http.Headers;
|
2018-11-11 01:11:58 +00:00
|
|
|
|
using Roadie.Library;
|
2018-11-11 20:45:44 +00:00
|
|
|
|
using Roadie.Library.Models.Users;
|
2018-11-12 00:28:37 +00:00
|
|
|
|
using Roadie.Library.SearchEngines.Imaging;
|
2018-11-11 20:10:10 +00:00
|
|
|
|
using System;
|
2018-11-12 00:28:37 +00:00
|
|
|
|
using System.Collections.Generic;
|
2018-11-11 20:10:10 +00:00
|
|
|
|
using System.Threading.Tasks;
|
2018-11-11 01:11:58 +00:00
|
|
|
|
|
|
|
|
|
namespace Roadie.Api.Services
|
|
|
|
|
{
|
|
|
|
|
public interface IImageService
|
|
|
|
|
{
|
2018-11-21 15:22:55 +00:00
|
|
|
|
Task<FileOperationResult<Library.Models.Image>> ArtistImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
2019-05-29 22:25:40 +00:00
|
|
|
|
|
2019-02-10 00:19:26 +00:00
|
|
|
|
Task<FileOperationResult<Library.Models.Image>> ArtistSecondaryImage(Guid id, int imageId, int? width, int? height, EntityTagHeaderValue etag = null);
|
2018-11-11 20:10:10 +00:00
|
|
|
|
|
2018-11-16 03:37:00 +00:00
|
|
|
|
Task<FileOperationResult<Library.Models.Image>> ById(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
|
|
|
|
|
2018-11-21 15:22:55 +00:00
|
|
|
|
Task<FileOperationResult<Library.Models.Image>> CollectionImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
2018-11-11 20:10:10 +00:00
|
|
|
|
|
2018-11-12 00:28:37 +00:00
|
|
|
|
Task<OperationResult<bool>> Delete(User user, Guid id);
|
2018-11-11 20:45:44 +00:00
|
|
|
|
|
2018-11-12 00:28:37 +00:00
|
|
|
|
Task<OperationResult<IEnumerable<ImageSearchResult>>> ImageProvidersSearch(string query);
|
|
|
|
|
|
2018-11-21 15:22:55 +00:00
|
|
|
|
Task<FileOperationResult<Library.Models.Image>> LabelImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
2018-11-11 20:10:10 +00:00
|
|
|
|
|
2018-11-21 15:22:55 +00:00
|
|
|
|
Task<FileOperationResult<Library.Models.Image>> PlaylistImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
2018-11-11 20:10:10 +00:00
|
|
|
|
|
2018-11-21 15:22:55 +00:00
|
|
|
|
Task<FileOperationResult<Library.Models.Image>> ReleaseImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
2019-05-29 22:25:40 +00:00
|
|
|
|
|
2019-02-10 00:19:26 +00:00
|
|
|
|
Task<FileOperationResult<Library.Models.Image>> ReleaseSecondaryImage(Guid id, int imageId, int? width, int? height, EntityTagHeaderValue etag = null);
|
2018-11-11 20:10:10 +00:00
|
|
|
|
|
2019-01-08 22:40:26 +00:00
|
|
|
|
Task<OperationResult<IEnumerable<ImageSearchResult>>> Search(string query, int resultsCount = 10);
|
|
|
|
|
|
2018-11-21 15:22:55 +00:00
|
|
|
|
Task<FileOperationResult<Library.Models.Image>> TrackImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
2018-11-11 20:10:10 +00:00
|
|
|
|
|
2018-11-21 15:22:55 +00:00
|
|
|
|
Task<FileOperationResult<Library.Models.Image>> UserImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
2018-11-11 01:11:58 +00:00
|
|
|
|
}
|
|
|
|
|
}
|