using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IOB_UT_NEXT.Config
{
///
/// Implementazione di riferimento x un file di configurazione x esecuzione task tramite EgwCApp
///
public class ExtToolConf
{
#region Public Properties
///
/// Path Archivio dove depositare file ORIGINALI processati (se !="" vanno archiviati)
///
public string ArchiveDir { get; set; } = "";
///
/// Path dove depositare file tradotti processati (se !="" vanno spostati li)
///
public string ConvertDir { get; set; } = "";
///
/// Path file da processare
///
public string FileInPath { get; set; } = "demoIn.txt";
///
/// Path file dove salvare
///
public string FileOutPath { get; set; } = "";
///
/// IdxODL da registrare
///
public int IdxODL { get; set; } = 0;
///
/// DataType in output del file da processare (default Record Giacenze Giacovelli)
///
public OutDataType ReturnDataType { get; set; } = OutDataType.RegGiacenze;
///
/// Parametri per processing file: indica in quale NUMERO colonna (INT) ci sia un valore
///
public Dictionary ProcessParamInt { get; set; } = new Dictionary();
///
/// Parametri per processing file string --> string
///
public Dictionary ProcessParamStr { get; set; } = new Dictionary();
///
/// DB Redis dove salvare
///
public int RedisDB { get; set; } = 0;
///
/// Posizione Redis dove salvare (HashKey)
///
public string RedisOut { get; set; } = "";
///
/// Porta Redis salvataggio
///
public int RedisPort { get; set; } = 6379;
///
/// Indirizzo Redis server
///
public string RedisServer { get; set; } = "localhost";
///
/// Valore TTL chiavi salvate in Redis (secondi)) - 0 = non scade
///
public int RedisTTL { get; set; } = 0;
///
/// Modalità ritorno risutlati
///
public ReturnMode Return { get; set; } = ReturnMode.ND;
///
/// Path file da processare
///
public string TargetName { get; set; } = "";
///
/// Tipologia di iport da condurre
///
public ImportType Type { get; set; } = ImportType.ND;
#endregion Public Properties
}
}