forked from FarmMaps/FarmMapsApiClient
download codelist CL405, soil types
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"codeLists": [ "CL022", "CL127", "CL263", "CL042" ]
|
||||
"codeLists": [ "CL022", "CL127", "CL263", "CL405", "CL042" ]
|
||||
//"DownloadFolder": "Downloads", //"C:\\hugoschrererdir\\kpidir\\", // "Downloads", -> if you just put "Downloads" the program will download to somewhere in ..\FarmMapsApiClient_WURtest\FarmmapsDataDownload\bin\Debug\netcoreapp3.1\Downloads\
|
||||
}
|
@@ -16,6 +16,7 @@ namespace FarmmapsDownloadCL.Models
|
||||
this.dictCl.Add("CL022", new List<string> { "vnd.farmmaps.itemtype.codelist.cl022", "CL022item" });
|
||||
this.dictCl.Add("CL127", new List<string> { "vnd.farmmaps.itemtype.codelist.cl127", "CL127item" });
|
||||
this.dictCl.Add("CL263", new List<string> { "vnd.farmmaps.itemtype.codelist.cl263", "CL263item" });
|
||||
this.dictCl.Add("CL405", new List<string> { "vnd.farmmaps.itemtype.codelist.cl405", "CL405item" });
|
||||
}
|
||||
public string itemcode;
|
||||
//Define here the codelist names, their item type and the class defining the contents of the data type (and defined in the Models.CodelistsClasses)
|
||||
@@ -26,7 +27,7 @@ namespace FarmmapsDownloadCL.Models
|
||||
{
|
||||
public CL022item()
|
||||
{
|
||||
this.headers = new string[] { "codelist","code", "description", "type","k", "n","p","composition" };
|
||||
this.headers = new string[] { "codelist", "code", "description", "type", "n", "p", "k", "composition" };
|
||||
this.codelist = "CL022";
|
||||
this.about = new string[] { "EDI-Crop, coderingslijst meststoffen", "type MOR = organische meststof; MAN = anorganische meststof" };
|
||||
}
|
||||
@@ -84,4 +85,23 @@ namespace FarmmapsDownloadCL.Models
|
||||
public string composition { get; set; }
|
||||
|
||||
}
|
||||
public class CL405item
|
||||
{
|
||||
public CL405item()
|
||||
{
|
||||
this.headers = new string[] { "codelist", "code", "description", "description_fr", "description_nl", "hoofdgroep" };
|
||||
this.codelist = "CL405";
|
||||
this.about = new string[] { };
|
||||
}
|
||||
|
||||
public string[] headers { get; }
|
||||
public string codelist { get; }
|
||||
public string[] about { get; }
|
||||
public string code { get; set; }
|
||||
public string hoofdgroep { get; set; }
|
||||
public string description { get; set; }
|
||||
public string description_fr { get; set; }
|
||||
public string description_nl { get; set; }
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user