TorrentFile

@Serializable
class TorrentFile(val index: Int, val name: String, val size: Long, val progress: Float, val priority: Int, val isSeeding: Boolean? = false, val pieceRange: List<Int>, val availability: Float)

Constructors

Link copied to clipboard
constructor(index: Int, name: String, size: Long, progress: Float, priority: Int, isSeeding: Boolean? = false, pieceRange: List<Int>, availability: Float)

Properties

Link copied to clipboard

Percentage of file pieces currently available

Link copied to clipboard
val index: Int

The index of this file in the torrent contents list

Link copied to clipboard
@SerialName(value = "is_seed")
val isSeeding: Boolean? = false

True if file is seeding/complete

Link copied to clipboard

File name (including relative path)

Link copied to clipboard
@SerialName(value = "piece_range")
val pieceRange: List<Int>

The first number is the starting piece index and the second number is the ending piece index (inclusive)

Link copied to clipboard

File priority

Link copied to clipboard

File progress (percentage/100)

Link copied to clipboard
val size: Long

File size (bytes)