root / GES_PAC / Model / PhaseCalibration.cs @ ba296a27
Historique | Voir | Annoter | Télécharger (722 octets)
1 | 5d673ce0 | Lucas Bihannic | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Text; |
||
5 | using System.Threading.Tasks; |
||
6 | |||
7 | namespace GES_PAC.Model |
||
8 | { |
||
9 | public class PhaseCalibration |
||
10 | { |
||
11 | public string Name { get; } |
||
12 | public int Value { get; } |
||
13 | |||
14 | private PhaseCalibration(string name, int value) // a passer en public quand integration webservice |
||
15 | { |
||
16 | Name = name; |
||
17 | Value = value; |
||
18 | } |
||
19 | |||
20 | public static readonly PhaseCalibration Debut = new("Début", 1); |
||
21 | public static readonly PhaseCalibration Fin = new("Fin", 2); |
||
22 | |||
23 | public static readonly List<PhaseCalibration> All = new() { Debut, Fin }; |
||
24 | |||
25 | public override string ToString() => Name; |
||
26 | |||
27 | } |
||
28 | } |