ProviderResult

sealed class ProviderResult

A container for the result of a single torrentsearch.TorrentProvider query. ProviderResult is either a Success instance or any number of Error types.

Inheritors

Types

Link copied to clipboard
sealed class Error : ProviderResult

The data acquired when an error occurred during a torrentsearch.TorrentProvider query.

Link copied to clipboard
data class Success(val providerName: String, val torrents: List<TorrentDescription>, val fromCache: Boolean = false, val page: Int = 1, val pageSize: Int = torrents.size, val totalTorrents: Int = torrents.size, val requiresResolution: Boolean = false) : ProviderResult

The data acquired from a successful torrentsearch.TorrentProvider query.

Properties

Link copied to clipboard
abstract val providerName: String

The name of the provider which produced this result.