44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
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;
|
|
|
|
/// <summary>
|
|
/// Tipo applicazione da monitorare
|
|
/// </summary>
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public CoreEnum.AppType ApplicationType{ get; set; } = CoreEnum.AppType.None;
|
|
|
|
/// <summary>
|
|
/// Path di base da monitorare
|
|
/// </summary>
|
|
public string BasePath { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Pattern di ricerca
|
|
/// </summary>
|
|
public string SearchPattern { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Indica se il path sia abilitato
|
|
/// </summary>
|
|
public bool IsEnabled { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Indica se sia abilitato l'update x l'item
|
|
/// </summary>
|
|
public bool UpdateEnabled { get; set; } = false;
|
|
}
|
|
}
|