using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Core.Models
{
public class ControlTarget
{
[Key]
public int Idx { get; set; } = 0;
///
/// Tipo applicazione da monitorare
///
public string ApplicationType { get; set; } = "";
#if false
[JsonConverter(typeof(StringEnumConverter))]
public CoreEnum.AppType ApplicationType { get; set; } = CoreEnum.AppType.None;
#endif
///
/// 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;
}
}