ningshuxia
2023-03-11 8bf5f0281d3343160e76f7b79dacba9658f1c115
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation.Model
{
    public partial class MonitorAlarmConfigure
    {
 
        /// <summary>
        /// 合理区间
        /// </summary>
        public class ReasonableSpace : JsonModel<ReasonableSpace>
        {
            /// <summary>
            /// 最大值
            /// </summary>
            public double MaxValue { get; set; }
 
            /// <summary>
            /// 最小值
            /// </summary>
            public double MinValue { get; set; }
 
            /// <summary>
            /// 验证
            /// </summary>
            public bool Verify(double value)
            {
                if (value > MaxValue)
                    return false;
                if (value < MinValue)
                    return false;
                return true;
            }
        }
 
 
    }
}