using System.Collections.Generic;
using System;
using System.Drawing;
using System.Diagnostics;
using System.Data;
using System.Collections;
using System.Windows.Forms;
using System.IO;
using System.Text;
using AR;

namespace vmsnet
{
    public class NotifyData
    {
        public int idx_m { get; set; }

        /// <summary>
        /// 0부터시작하는 인덱스값
        /// </summary>
        public int idx_u { get; set; }

        /// <summary>
        /// 0부터시작하는 인덱스값
        /// </summary>
        public int idx_c { get; set; }

        /// <summary>
        /// 채널번호 1부터시작
        /// </summary>
        public int chno { get; set; }

        public float offset { get; set; }
        public byte decpos { get; set; }
        public bool use { get; set; }

        /// <summary>
        /// 측정값(전압)
        /// </summary>
        public int value { get; set; }

        /// <summary>
        /// 측정시간(filetime-long)
        /// yyyy-MM-dd HH:mm:ss
        /// </summary>
        public string time { get; set; }

        public override string ToString()
        {
            return $"[{chno}-{(this.use ? "O" : "X")}] M{idx_m}U{idx_u}C{idx_c},V={value}";
        }
    }

}
