Files
egwcapp/EgwControlCenter.Core/PatrolSettings.cs
T
2024-12-24 18:04:58 +01:00

65 lines
1.9 KiB
C#

using EgwControlCenter.Core.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EgwControlCenter.Core
{
public class PatrolSettings
{
#region Public Properties
/// <summary>
/// Nome applicativo
/// default: UpdateManager
/// </summary>
public string CodApp { get; set; } = "UpdateManager";
/// <summary>
/// Chiave specifica autorizzazione applicativo
/// </summary>
public string AppKey { get; set; } = "";
/// <summary>
/// Codice Impiego (UID macchina)
/// </summary>
public string CodImpiego { get; set; } = "";
/// <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>
/// Verifica ci siano tutte le info di comunicazione
/// </summary>
public bool HasCommData
{
get => !string.IsNullOrEmpty(MainKey) && !string.IsNullOrEmpty(AppKey) && !string.IsNullOrEmpty(CodImpiego);
}
#endregion Public Properties
}
}