doxy/Library/Sources/Internal/Models/ArchiveList.swift

20 lines
581 B
Swift

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