Newer
Older
import Foundation
public struct Progress: Equatable {
public init(
completed: Bool,
transmitted: Int,
) {
self.completed = completed
self.transmitted = transmitted
self.total = total
}
public var completed: Bool
public var transmitted: Int
public var total: Int
}
extension Progress: Codable {
enum CodingKeys: String, CodingKey {
case completed = "Completed"
case transmitted = "Transmitted"
case total = "Total"