commonMain.TorrentTracker.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qbittorrent-models-jvm Show documentation
Show all versions of qbittorrent-models-jvm Show documentation
Kotlin wrapper for the qBittorrent Web API using Ktor.
package qbittorrent.models
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class TorrentTracker(
/** The tracker URL. */
val url: String,
/**
* Tracker status
* 0 - Tracker is disabled (used for DHT, PeX, and LSD)
* 1 - Tracker has not been contacted yet
* 2 - Tracker has been contacted and is working
* 3 - Tracker is updating
* 4 - Tracker has been contacted, but it is not working (or doesn't send proper replies)
*/
val status: Int,
/**
* Tracker priority tier. Lower tier trackers are tried before higher tiers.
* Tier numbers are valid when >= 0, < 0 is used as placeholder when tier does not
* exist for special entries (such as DHT).
*/
val tier: Int,
/** Number of peers for current torrent, as reported by the tracker */
@SerialName("num_peers")
val numPeers: Int,
/** Number of seeds for current torrent, as reported by the tracker */
@SerialName("num_seeds")
val numSeeds: Int,
/** Number of leeches for current torrent, as reported by the tracker */
@SerialName("num_leeches")
val numLeeches: Int,
/** Number of completed downloads for current torrent, as reported by the tracker */
@SerialName("num_downloaded")
val numDownloaded: Int,
/** Tracker message (there is no way of knowing what this message is - it's up to tracker admins) */
val msg: String = "",
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy