25 lines
704 B
Swift
25 lines
704 B
Swift
public enum BalancePoint {
|
|
|
|
public struct Request: Codable, Equatable, Sendable {
|
|
|
|
public let winterDesignTemperature: Int
|
|
public let heatLoss: Int
|
|
public let heatPumpCapacity: Capacity.HeatPumpHeating
|
|
|
|
public init(winterDesignTemperature: Int, heatLoss: Int, heatPumpCapacity: Capacity.HeatPumpHeating) {
|
|
self.winterDesignTemperature = winterDesignTemperature
|
|
self.heatLoss = heatLoss
|
|
self.heatPumpCapacity = heatPumpCapacity
|
|
}
|
|
}
|
|
|
|
public struct Response: Codable, Equatable, Sendable {
|
|
|
|
public let balancePointTemperature: Double
|
|
|
|
public init(balancePointTemperature: Double) {
|
|
self.balancePointTemperature = balancePointTemperature
|
|
}
|
|
}
|
|
}
|