using System;

namespace MWS.Model.Model
{
    public class SystemConfig
    {
        /// <summary>
        /// 是否全屏显示
        /// </summary>
        public bool IsFullScreen { get; set; }

        /// <summary>
        /// 页面刷新频率
        /// </summary>
        public ushort PageRefreshInterval { get; set; }

        /// <summary>
        /// 数据读取频率
        /// </summary>
        public ushort DataReadInterval { get; set; }

        /// <summary>
        /// 数据保存频率
        /// </summary>
        public ushort DataSaveInterval { get; set; }

        public Weighting WeightItem { get; set; }

        public class Weighting
        {
            /// <summary>
            /// 投料信号前置 ms毫秒
            /// </summary>
            public int FrontTime { get; set; }

            /// <summary>
            /// 有效值数量
            /// </summary>
            public int EffectCount { get; set; }

            /// <summary>
            /// 称重门限值
            /// </summary>
            public float Threshold { get; set; }
            /// <summary>
            /// 称重门限值
            /// </summary>
            public float PutThreshold { get; set; }

            /// <summary>
            /// 载荷显示 1 净重 2 毛重
            /// </summary>
            public short LoadMode { get; set; }
        }
    }
}