From 7f5f676fffc1e21f60457cd0cbb4fbf447f11778 Mon Sep 17 00:00:00 2001 From: Francisco Salas Date: Thu, 19 Oct 2023 16:12:02 +0200 Subject: [PATCH] aw5600: added fields to interface --- CarbonCalculation.cs | 2 +- Models/CarbonRequest.cs | 1 + Models/FarmMapsCarbonRequest.cs | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CarbonCalculation.cs b/CarbonCalculation.cs index 94e88d2..37aa240 100644 --- a/CarbonCalculation.cs +++ b/CarbonCalculation.cs @@ -139,7 +139,7 @@ namespace FarmMapsAPI.Carbon Area = cropField.Area, HistoricalCropData = mappedCropData, SoilType = MapSoil(cropField.SoilType), - SoilProperty = new SoilProperty { Clay_Content = cropField.SoilProperty.Clay_Content, OM_Const = cropField.SoilProperty.OM_Const, Depth10 = cropField.SoilProperty.Depth10 }, + SoilProperty = new SoilProperty { Clay_Content = cropField.SoilProperty.Clay_Content, OM_Const = cropField.SoilProperty.OM_Const, Depth10 = cropField.SoilProperty.Depth10, Depth = cropField.SoilProperty.Depth, OM_Type = cropField.SoilProperty.OM_Type }, GreenManures = greenManures }); foreach (var crops in cropField.HistoricalCropData) diff --git a/Models/CarbonRequest.cs b/Models/CarbonRequest.cs index 7b4b5ec..e721e6c 100644 --- a/Models/CarbonRequest.cs +++ b/Models/CarbonRequest.cs @@ -36,6 +36,7 @@ namespace CarbonService.Models public class SoilProperty { public double? OM_Const { get; set; } + public string OM_Type { get; set; } public double? Clay_Content { get; set; } public bool? Depth10 { get; set; } public int? Depth { get; set; } diff --git a/Models/FarmMapsCarbonRequest.cs b/Models/FarmMapsCarbonRequest.cs index 4cd8578..1eaa5d9 100644 --- a/Models/FarmMapsCarbonRequest.cs +++ b/Models/FarmMapsCarbonRequest.cs @@ -76,8 +76,10 @@ namespace FarmMapsAPI.Carbon.Models public class SoilPropertyFarmMaps { public double? OM_Const { get; set; } + public string OM_Type { get; set; } public double? Clay_Content { get; set; } public bool Depth10 { get; set; } + public int? Depth { get; set; } } public class GreenManureTypeFarmMaps