roadie/Roadie.Api.Services/IImageService.cs

35 lines
1.6 KiB
C#
Raw Normal View History

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
{
Task<FileOperationResult<Library.Models.Image>> ArtistImage(Guid id, 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);
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);
Task<FileOperationResult<Library.Models.Image>> LabelImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
2018-11-11 20:10:10 +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
Task<FileOperationResult<Library.Models.Image>> ReleaseImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
2018-11-11 20:10:10 +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
Task<FileOperationResult<Library.Models.Image>> UserImage(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
2018-12-21 22:59:33 +00:00
Task<OperationResult<IEnumerable<ImageSearchResult>>> Search(string query, int resultsCount = 10);
2018-11-11 01:11:58 +00:00
}
}