using System;

namespace NcProgramManager.Cnc.Fagor
{
    public sealed class FagorConnectionConfig
    {
        public string Name { get; set; }
        public string IpAddress { get; set; }
        public int Port { get; set; } = 21;
        public string Username { get; set; } = string.Empty;
        public string Password { get; set; } = string.Empty;
        /// <summary>Directory dei programmi sul server FTP Fagor. Default valido per 8060/8065/8070.</summary>
        public string ProgramDirectory { get; set; } = "/Users/Prg/";
        /// <summary>Estensione applicata ai nomi programma senza estensione. Default `.nc` per Fagor 8060/8065/8070.</summary>
        public string ProgramExtension { get; set; } = ".nc";
        public TimeSpan RequestTimeout { get; set; } = TimeSpan.FromSeconds(10);
    }
}
