2018-11-11 20:10:10 +00:00
|
|
|
|
using Microsoft.Net.Http.Headers;
|
2018-11-11 01:11:58 +00:00
|
|
|
|
using Roadie.Library;
|
2019-07-07 03:16:33 +00:00
|
|
|
|
using Roadie.Library.Identity;
|
2019-11-04 03:19:04 +00:00
|
|
|
|
using Roadie.Library.Imaging;
|
2019-06-30 22:14:36 +00:00
|
|
|
|
using Roadie.Library.Models;
|
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
|
|
|
|
|
{
|
2019-07-07 03:16:33 +00:00
|
|
|
|
string Referrer { get; set; }
|
2019-05-29 22:25:40 +00:00
|
|
|
|
|
2019-07-07 03:16:33 +00:00
|
|
|
|
string RequestIp { get; set; }
|
2018-11-11 20:10:10 +00:00
|
|
|
|
|
2019-11-04 03:19:04 +00:00
|
|
|
|
Task<FileOperationResult<IImage>> ArtistImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
2019-07-07 03:16:33 +00:00
|
|
|
|
|
2019-11-04 03:19:04 +00:00
|
|
|
|
Task<FileOperationResult<IImage>> ArtistSecondaryImage(Guid id, int imageId, int? width, int? height, EntityTagHeaderValue etag = null);
|
2018-11-16 03:37:00 +00:00
|
|
|
|
|
2019-11-04 03:19:04 +00:00
|
|
|
|
Task<FileOperationResult<IImage>> CollectionImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
2018-11-11 20:45:44 +00:00
|
|
|
|
|
2019-11-04 03:19:04 +00:00
|
|
|
|
Task<FileOperationResult<IImage>> GenreImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
2018-11-12 00:28:37 +00:00
|
|
|
|
|
2019-11-04 03:19:04 +00:00
|
|
|
|
Task<FileOperationResult<IImage>> LabelImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
2019-08-02 20:59:24 +00:00
|
|
|
|
|
2019-11-04 03:19:04 +00:00
|
|
|
|
Task<FileOperationResult<IImage>> PlaylistImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
2019-08-22 20:33:07 +00:00
|
|
|
|
|
2019-11-04 03:19:04 +00:00
|
|
|
|
Task<FileOperationResult<IImage>> ReleaseImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
2018-11-11 20:10:10 +00:00
|
|
|
|
|
2019-11-04 03:19:04 +00:00
|
|
|
|
Task<FileOperationResult<IImage>> 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);
|
|
|
|
|
|
2019-11-04 03:19:04 +00:00
|
|
|
|
Task<FileOperationResult<IImage>> TrackImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
2018-11-11 20:10:10 +00:00
|
|
|
|
|
2019-11-04 03:19:04 +00:00
|
|
|
|
Task<FileOperationResult<IImage>> UserImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
|
2018-11-11 01:11:58 +00:00
|
|
|
|
}
|
|
|
|
|
}
|