using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IOB_UT_NEXT.DataModel { /// /// Classe per salvare info relative ai dati di flusso utili a gestione /// - DeadBand /// - Sampling interval /// - Storicizzazione /// [Serializable] public class FluxData { /// /// ID (univoco) dell'oggetto fluxLog /// public string CodFlux { get; set; } = ""; /// /// Valore (in sec) del periodo di downsampling (0 --> NON usato) /// public int SamplePeriod { get; set; } = 600; /// /// Valore soglia DeadBand (0 --> non usata) /// public double DeadBand{ get; set; } = 0; /// /// Valore Registrato in formato stringa /// public string Value { get; set; } = ""; /// /// Valore in formato byte array /// public byte[] ValueRawByte { get; set; } = new byte[1]; /// /// Timestamp ultimo aggiornamento /// public DateTime LastUpdated { get; set; } = DateTime.Now; } }