using System;

namespace IOB_WIN_MTC
{
    /// <summary>
    /// Classe di estensione x oggetti DataItems MTC con struttura e valori
    /// </summary>
    public class MtcDataItemExt : MTConnect.Devices.DataItem
    {
        #region Public Properties

        /// <summary>
        /// Valore (in sec) del periodo di downsampling (0 --> NON usato)
        /// </summary>
        public int samplePeriod { get; set; } = 60;

        /// <summary>
        /// Valore soglia DeadBand (0 --> non usata)
        /// </summary>
        public double thresholdDeadBand { get; set; } = 0;

        /// <summary>
        /// UUID univoco dell'oggetto --> flusso
        /// </summary>
        public string uid { get; set; } = "";

        /// <summary>
        /// Valore Registrato in formato stringa
        /// </summary>
        public string value { get; set; } = "";

        /// <summary>
        /// Timestamp data-ora evento registrato
        /// </summary>
        public DateTime valueTimestamp { get; set; } = DateTime.Now;

        #endregion Public Properties
    }

}