using IOB_UT_NEXT.Config.Special;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IOB_UT_NEXT.Config.Base
{
    /// <summary>
    /// Definizione parametri Macchina / CN / PLC
    /// </summary>
    public class ConnectionDto
    {
        /// <summary>
        /// Indirizzo Ip del CNC Controllato
        /// </summary>
        public string IpAddr { get; set; } = "127.0.0.1";

        /// <summary>
        /// Porta del CNC Controllato
        /// </summary>
        public string Port { get; set; } = "0";

        /// <summary>
        /// Indirizzo Ip destinato ai ping (quando diverso dall'IP principale)
        /// </summary>
        public string PingIpAddr { get; set; } = "127.0.0.1";

        /// <summary>
        /// Timeout test PING
        /// </summary>
        public int PingMsTimeout { get; set; } = 500;

        /// <summary>
        /// Numero massimo di PING da eseguire (es OPC-UA)
        /// </summary>
        public int MaxTryPing { get; set; } = 3;

        /// <summary>
        /// Abilitazione riavvio automatico/autonomo client
        /// </summary>
        public bool EnableRestart { get; set; } = false;
    }
}
