2025-03-12 00:36:38 +01:00
|
|
|
import Hummingbird
|
|
|
|
|
2025-03-12 00:45:22 +01:00
|
|
|
/// A model that provides the names of all the *DocC* archives that are contained at a certain folder in the file system.
|
2025-03-12 00:36:38 +01:00
|
|
|
struct ArchiveList: ResponseCodable {
|
|
|
|
|
|
|
|
// MARK: Properties
|
|
|
|
|
2025-03-12 00:45:22 +01:00
|
|
|
/// A list of *DocC* archive names extracted from a given folder in the file system.
|
2025-03-12 00:36:38 +01:00
|
|
|
let archives: [String]
|
|
|
|
|
|
|
|
// MARK: Initialisers
|
|
|
|
|
2025-03-12 00:45:22 +01:00
|
|
|
/// Initialises this model.
|
|
|
|
/// - Parameter archives: A list of archive names extracted from a given folder in the file system.
|
2025-03-12 00:36:38 +01:00
|
|
|
init(_ archives: [String]) {
|
|
|
|
self.archives = archives
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|