45 lines
1.1 KiB
Swift
45 lines
1.1 KiB
Swift
public enum SizingLimits {
|
|
|
|
public struct Request: Codable, Equatable, Sendable {
|
|
|
|
public let systemType: SystemType
|
|
public let coolingLoad: Capacity.Cooling?
|
|
|
|
public init(systemType: SystemType, coolingLoad: Capacity.Cooling? = nil) {
|
|
self.systemType = systemType
|
|
self.coolingLoad = coolingLoad
|
|
}
|
|
}
|
|
|
|
public struct Response: Codable, Equatable, Sendable {
|
|
|
|
public let oversizing: SizingLimits.Limits
|
|
public let undersizing: SizingLimits.Limits
|
|
|
|
public init(oversizing: SizingLimits.Limits, undersizing: SizingLimits.Limits) {
|
|
self.oversizing = oversizing
|
|
self.undersizing = undersizing
|
|
}
|
|
}
|
|
|
|
public struct Limits: Codable, Equatable, Sendable {
|
|
|
|
public let heating: Int
|
|
public let coolingTotal: Int
|
|
public let coolingSensible: Int?
|
|
public let coolingLatent: Int?
|
|
|
|
public init(
|
|
heating: Int,
|
|
coolingTotal: Int,
|
|
coolingSensible: Int? = nil,
|
|
coolingLatent: Int? = nil
|
|
) {
|
|
self.heating = heating
|
|
self.coolingTotal = coolingTotal
|
|
self.coolingSensible = coolingSensible
|
|
self.coolingLatent = coolingLatent
|
|
}
|
|
}
|
|
}
|