Files
PageManager/PageManager.Api/PageManager.Api/Services/IIndexerService.cs
T
2026-03-28 17:36:25 +02:00

18 lines
440 B
C#

namespace PageManager.Api.Services;
public record TorrentResult(
string Title,
string? Magnet,
string? DownloadUrl,
long? SizeBytes,
int Seeders,
int Leechers,
string Indexer,
DateTime? PublishDate);
public interface IIndexerService
{
/// <param name="type">"ebook" or "audiobook"</param>
Task<IReadOnlyList<TorrentResult>> SearchAsync(string query, string type, CancellationToken ct = default);
}