-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMeasure.cs
58 lines (49 loc) · 1.81 KB
/
Measure.cs
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace stationMeteo
{
public class Measure
{
public Byte ID { get; private set; }
public String measurementType { get; private set; }
public String units { get; private set; }
public String format { get; private set; }
public Byte? minValue { get; private set; }
public Byte? maxValue { get; private set; }
public Dictionary<int, Byte> tenLastMeasures { get; set; }
public Byte? time { get; private set; }
public Byte? alarmLow { get; set; }
public Byte? alarmHigh { get; set; }
public String alarmLowText { get; set; }
public String alarmHighText { get; set; }
public Measure(Byte ID, String measurementType, String units, String format ,Byte? minValue, Byte? maxValue, Dictionary<int, Byte> tenLastMeasures, Byte? time, Byte? alarmLow, Byte? alarmHigh )
{
this.ID = ID;
this.measurementType = measurementType;
this.units = units;
this.format = format;
this.minValue = minValue;
this.maxValue = maxValue;
this.tenLastMeasures = tenLastMeasures;
this.time = time;
this.alarmLow = alarmLow;
this.alarmHigh = alarmHigh;
}
public override String ToString()
{
return this.ID + "-"
+ this.measurementType + "-"
+ this.units + "-"
+ this.format + "-"
+ this.minValue + "-"
+ this.maxValue + "]"
+ this.tenLastMeasures + "]"
+ this.time + "]"
+ this.alarmLow + "]"
+ this.alarmHigh + "]";
}
}
}