gh-XcodesOrg-XcodesApp/Xcodes/Backend/Downloads.swift
2021-02-03 21:55:47 -06:00

21 lines
435 B
Swift

import Foundation
import Path
import Version
struct Downloads: Codable {
let downloads: [Download]
}
// Set to Int64 as ByteCountFormatter uses it.
public typealias ByteCount = Int64
public struct Download: Codable {
public let name: String
public let files: [File]
public let dateModified: Date
public struct File: Codable {
public let remotePath: String
public let fileSize: ByteCount
}
}