root / GES_PAC / Model / PhaseCalibration.cs @ 6f451cc1
Historique | Voir | Annoter | Télécharger (783 octets)
1 | 6f451cc1 | lbihannic | using SQLite; |
---|---|---|---|
2 | |||
3 | 5d673ce0 | Lucas Bihannic | namespace GES_PAC.Model |
4 | { |
||
5 | public class PhaseCalibration |
||
6 | { |
||
7 | 6f451cc1 | lbihannic | #region Propri?t?s |
8 | [PrimaryKey, AutoIncrement] |
||
9 | public int Id { get; set; } |
||
10 | public string Name { get; set; } |
||
11 | public int Value { get; set; } |
||
12 | #endregion |
||
13 | 5d673ce0 | Lucas Bihannic | |
14 | 6f451cc1 | lbihannic | #region Constructeurs |
15 | public PhaseCalibration() { } |
||
16 | 9fd69a0e | lbihannic | private PhaseCalibration(string name, int value) |
17 | 5d673ce0 | Lucas Bihannic | { |
18 | Name = name; |
||
19 | Value = value; |
||
20 | } |
||
21 | 6f451cc1 | lbihannic | #endregion |
22 | 5d673ce0 | Lucas Bihannic | |
23 | 9601eaf0 | lbihannic | public static readonly PhaseCalibration DEBUT = new("d?but", 1); |
24 | public static readonly PhaseCalibration FIN = new("fin", 2); |
||
25 | 5d673ce0 | Lucas Bihannic | |
26 | 9601eaf0 | lbihannic | public static readonly List<PhaseCalibration> All = new() { DEBUT, FIN }; |
27 | 5d673ce0 | Lucas Bihannic | |
28 | public override string ToString() => Name; |
||
29 | |||
30 | } |
||
31 | } |