forked from FarmMaps/FarmMapsApiClient
details about N & P balance written to output file
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace FarmmapsKPI.Models
|
||||
@@ -15,12 +16,21 @@ namespace FarmmapsKPI.Models
|
||||
public string parentName { get; set; }
|
||||
public string targetValue { get; set; }
|
||||
public string thresholdValue { get; set; }
|
||||
|
||||
public List<string> B1elements;
|
||||
public List<string> B2elements;
|
||||
public KPIOutput()
|
||||
{
|
||||
this.B1elements = new List<string>() { "disposal", "nFixationNKgHa", "nDepositionNKgHa","nFertilizerNKgHa","sowPlantingNKgHa" }; //TODO Tamara: rename disposal to nHarvestedNKgHa
|
||||
this.B2elements = new List<string>() { "disposal", "pFertillizerNKgHa", "sowPlantingNKgHa" }; //TODO Tamara: rename from pFertilizerNKgHa to pFertilizerPKgHa; rename disposal to pHarvestedPKgHa
|
||||
}
|
||||
}
|
||||
public class KPIOutputData
|
||||
{
|
||||
public string area { get; set; }
|
||||
public string cropTypeCode { get; set; }
|
||||
public string cropTypeName { get; set; }
|
||||
public KPIelementsOfBalance values { get; set; }
|
||||
public KPIenvironmentMeasureData[] environmentMeasureData { get; set; }
|
||||
|
||||
}
|
||||
@@ -35,4 +45,15 @@ namespace FarmmapsKPI.Models
|
||||
public string aquaticLife { get; set; }
|
||||
public string groundWater { get; set; }
|
||||
}
|
||||
public class KPIelementsOfBalance
|
||||
{
|
||||
public string disposal { get; set; }
|
||||
public string nFixationNKgHa { get; set; }
|
||||
public string nDepositionNKgHa { get; set; }
|
||||
public string nFertilizerNKgHa { get; set; }
|
||||
public string sowPlantingNKgHa { get; set; }
|
||||
public string pFertillizerNKgHa { get; set; } //TODO Tamara: delete this one after renaming
|
||||
public string pFertilizerPKgHa { get; set; }
|
||||
public string sowPlantingPKgHa { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user