using Newtonsoft.Json.Converters; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Text.Json.Serialization; using System.Threading.Tasks; namespace EgwControlCenter.Core.Models { public class ControlTarget { [Key] public int Idx { get; set; } = 0; /// /// Tipo applicazione da monitorare /// [JsonConverter(typeof(StringEnumConverter))] public CoreEnum.AppType ApplicationType{ get; set; } = CoreEnum.AppType.None; /// /// Path di base da monitorare /// public string BasePath { get; set; } = ""; /// /// Pattern di ricerca /// public string SearchPattern { get; set; } = ""; /// /// Indica se il path sia abilitato /// public bool IsEnabled { get; set; } = true; /// /// Indica se sia abilitato l'update x l'item /// public bool UpdateEnabled { get; set; } = false; } }