Refactor adjustment method selection

This commit is contained in:
Matthew Oslan
2019-06-09 11:25:21 -04:00
parent b6776f0e90
commit 0281a835e2
6 changed files with 233 additions and 117 deletions

View File

@@ -0,0 +1,17 @@
import { AdjustmentMethod, AdjustmentMethodResponse } from "./AdjustmentMethod";
/**
* Does not change the watering scale (only time data will be returned).
*/
async function calculateManualWateringScale( ): Promise< AdjustmentMethodResponse > {
return {
scale: undefined
}
}
const ManualAdjustmentMethod: AdjustmentMethod = {
calculateWateringScale: calculateManualWateringScale
};
export default ManualAdjustmentMethod;