94b4032fc0
- Notify opzionale da config (spenta x ora e non inseribile)
67 lines
1.9 KiB
C#
67 lines
1.9 KiB
C#
using EgwControlCenter.Core.Models;
|
|
using EgwCoreLib.Utils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EgwControlCenter.Core
|
|
{
|
|
public class PatrolSettings
|
|
{
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// Chiave specifica autorizzazione applicativo
|
|
/// </summary>
|
|
public string AppKey { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Nome applicativo
|
|
/// default: UpdateManager
|
|
/// </summary>
|
|
public string CodApp { get; set; } = "UpdateManager";
|
|
|
|
/// <summary>
|
|
/// Verifica ci siano tutte le info di comunicazione
|
|
/// </summary>
|
|
public bool HasCommData
|
|
{
|
|
get => !string.IsNullOrEmpty(MainKey) && !string.IsNullOrEmpty(AppKey);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Chiave principale di autorizzazione
|
|
/// </summary>
|
|
public string MainKey { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Tempo del tick-timer per verifica scadenza task di controllo
|
|
/// </summary>
|
|
public int RefreshIntSec { get; set; } = 60;
|
|
|
|
/// <summary>
|
|
/// Elenco degli oggetti da monitorare per update
|
|
/// </summary>
|
|
public List<ControlTarget> TargetList { get; set; } = new List<ControlTarget>();
|
|
|
|
/// <summary>
|
|
/// Veto prima di effettuare un nuovo controllo automatico COMPLETO
|
|
/// </summary>
|
|
public int VetoCheckMinutes { get; set; } = 120;
|
|
|
|
/// <summary>
|
|
/// Veto prima di effettuare un refresh di base
|
|
/// </summary>
|
|
public int VetoRefreshMinutes { get; set; } = 60;
|
|
|
|
/// <summary>
|
|
/// Abilitazione notifiche in tray
|
|
/// </summary>
|
|
public bool EnableNotify { get; set; } = false;
|
|
|
|
#endregion Public Properties
|
|
}
|
|
} |