using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IOB_UT_NEXT
{
public class FtpActConf
{
///
/// ID azione configurata
///
public string ActionId { get; set; } = "000";
///
/// IP / DNS name del ServerAddr FTP
///
public string ServerAddr { get; set; } = "localhost";
///
/// Porta FTP, default 21
///
public int ServerPort { get; set; } = 21;
///
/// User connessione FTP
///
public string ConnUser { get; set; } = "";
///
/// PWD connessione FTP
///
public string ConnPasswd { get; set; } = "";
///
/// Certificato FTP (raw) x accettazione implicita autofirmati
///
public string RawCert { get; set; } = "";
///
/// Skip del controllo certificato FTP
///
public bool SkipCert { get; set; } = true;
///
/// Tempo di attesa in SEC standard prima della prossima ri-esecuzione
///
public int ReExecVeto { get; set; } = 60;
///
/// Note opzionali
///
public string Note { get; set; } = "";
///
/// Elenco step da eseguire
///
public List StepsList { get; set; }
}
///
/// Configurazione di un singolo step FTP
///
public class ActionConfig
{
///
/// ID azione (per ordinamento)
///
public string Id { get; set; } = "00";
///
/// Descrizione step
///
public string Description { get; set; } = "00";
///
/// Azione richiesta
///
public ActType Action { get; set; } = ActType.CheckDir;
///
/// Dizionario parametri specifici per azione richiesta (dipendenti da azione...)
///
public Dictionary ParamList { get; set; } = new Dictionary();
}
///
/// Enum azioni FTP gestite/da gestire
///
public enum ActType
{
CheckDir,
CheckFile,
CreateDir,
DelDir,
DelFile,
DownloadDir,
DownloadFile,
GenRandomDir,
ListContent,
MirrorDirL2R,
MirrorDirR2L,
PingServer,
UploadDir,
UploadFile
}
}