using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MyCore.Models { public class Automation { public string Id { get; set; } public string Name { get; set; } public List Declencheurs { get; set; } public List Conditions { get; set; } public List Actions { get; set; } } public class Declencheur { public enum Type { MQTT, WEB, TIME } } public class Condition { public enum Type { STATE, HOUR } } public class Action { public enum Type { DELAY, DEVICE } } }