using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FLY.Thick.Base.IService
{
    /// <summary>
    /// 定点测量服务
    /// </summary>
    public interface IFixService
    {
        /// <summary>
        /// 注册timegrid 事件
        /// </summary>
        /// <param name="handler"></param>
        void RegistTimeGridEvent(FixEventHandler handler);
        /// <summary>
        /// 关闭注册timegrid 事件
        /// </summary>
        /// <param name="handler"></param>
        void UnRegistTimeGridEvent(FixEventHandler handler);
    }

    public delegate void FixEventHandler(object sender, FixEventArgs e);

    public class FixEventArgs : EventArgs
    {
        /// <summary>
        /// 数据, AD数据！！！！！
        /// </summary>
        public int[] ADs;
        /// <summary>
        /// 数据, 厚度数据！！！！！
        /// </summary>
        public double[] thicks;
        /// <summary>
        /// 单数据时间间隔
        /// </summary>
        public TimeSpan ts;
        /// <summary>
        /// 开始时间点
        /// </summary>
        public DateTime time;
    }
}
