Handle events.
Calculate targetn.
This commit is contained in:
12
FarmmapsApi/Models/EventMessage.cs
Normal file
12
FarmmapsApi/Models/EventMessage.cs
Normal 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; }
|
||||
}
|
||||
}
|
@@ -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; }
|
||||
|
@@ -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>();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user