roadie/RoadieApi/Services/IImageService.cs

33 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
{
2018-11-11 16:20:33 +00:00
Task<FileOperationResult<Library.Models.Image>> ArtistThumbnail(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);
2018-11-11 20:10:10 +00:00
Task<FileOperationResult<Library.Models.Image>> CollectionThumbnail(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
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-11 20:10:10 +00:00
Task<FileOperationResult<Library.Models.Image>> LabelThumbnail(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
Task<FileOperationResult<Library.Models.Image>> PlaylistThumbnail(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
2018-11-11 17:27:13 +00:00
Task<FileOperationResult<Library.Models.Image>> ReleaseThumbnail(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
2018-11-11 20:10:10 +00:00
Task<FileOperationResult<Library.Models.Image>> TrackThumbnail(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
Task<FileOperationResult<Library.Models.Image>> UserThumbnail(Guid id, int? width, int? height, EntityTagHeaderValue etag = null);
2018-11-11 01:11:58 +00:00
}
}