18 lines
440 B
C#
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);
|
|
}
|