using System;
using XP.Hardware.Detector.Abstractions.Enums;

namespace XP.Hardware.Detector.Abstractions
{
    /// <summary>
    /// 校正完成事件参数 | Correction completed event arguments
    /// 携带校正类型和结果信息
    /// </summary>
    public class CorrectionCompletedEventArgs : EventArgs
    {
        /// <summary>
        /// 校正类型 | Correction type
        /// </summary>
        public CorrectionType Type { get; set; }

        /// <summary>
        /// 校正结果 | Correction result
        /// </summary>
        public DetectorResult Result { get; set; }

        /// <summary>
        /// 构造函数 | Constructor
        /// </summary>
        /// <param name="type">校正类型 | Correction type</param>
        /// <param name="result">校正结果 | Correction result</param>
        public CorrectionCompletedEventArgs(CorrectionType type, DetectorResult result)
        {
            Type = type;
            Result = result;
        }
    }
}
