Skip to content

TorrentContent

adborbas edited this page Jun 5, 2022 · 1 revision

TorrentContent

public struct TorrentContent: Decodable 

Inheritance

Decodable

Initializers

init(from:)

public init(from decoder: Decoder) throws 

Properties

name

File name (including relative path).

public let name: String

index

File index.

public let index: Int

size

File size (bytes).

public let size: Int64

isSeed

True if file is seeding/complete.

public let isSeed: Bool

progress

File progress (percentage/100).

public let progress: Float

priority

File priority.

public let priority: Priority

availability

Percentage of file pieces currently available (percentage/100).

public let availability: Float

pieceRange

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

public let pieceRange: [Int]