ff865edaf7
- update gestione reset key e cod impiego - test registrazione in debug - ok generazione nuove KEY
60 lines
1.7 KiB
C#
60 lines
1.7 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; } = 30;
|
|
|
|
/// <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
|
|
/// </summary>
|
|
public int VetoCheckMinutes { get; set; } = 1;
|
|
|
|
/// <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
|
|
}
|
|
} |