Handle events.

Calculate targetn.
This commit is contained in:
2020-03-24 23:26:02 +01:00
parent 1d9f520f55
commit e6561308e5
8 changed files with 251 additions and 67 deletions

View File

@@ -0,0 +1,12 @@
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
namespace FarmmapsApi.Models
{
public class EventMessage
{
public string EventType { get; set; }
public string ItemCode { get; set; }
public Dictionary<string, string> Attributes { get; set; }
}
}

View File

@@ -15,6 +15,7 @@ namespace FarmmapsApi.Models
public string ItemType { get; set; }
public string Name { get; set; }
public DateTime? DataDate { get; set; }
public DateTime? DataEndDate { get; set; }
public JObject Geometry { get; set; }
public JObject Data { get; set; }
public IList<string> Tags { get; set; }

View File

@@ -7,11 +7,11 @@ namespace FarmmapsApi.Models
public string TaskType { get; set; }
public string Delay { get; set; }
public Dictionary<string, string> attributes { get; set; }
public Dictionary<string, string> attributes { get; }
public TaskRequest()
{
this.attributes = new Dictionary<string, string>();
attributes = new Dictionary<string, string>();
}
}
}