Révision 957bebf1 GES_PAC/Model/Comportement.cs
GES_PAC/Model/Comportement.cs | ||
---|---|---|
3 | 3 |
{ |
4 | 4 |
public class Comportement |
5 | 5 |
{ |
6 |
private DateTime date; |
|
7 |
private TypeComportement selectedType; |
|
8 |
private string description; |
|
9 |
|
|
10 |
public Comportement(DateTime date, TypeComportement selectedType, string description) |
|
11 |
{ |
|
12 |
this.date = date; |
|
13 |
this.selectedType = selectedType; |
|
14 |
this.description = description; |
|
15 |
} |
|
16 |
|
|
17 | 6 |
public long Id { get; set; } |
18 | 7 |
public DateTime Time { get; set; } |
19 |
public TypeComportement? Type { get; set; }
|
|
8 |
public TypeComportement Type { get; set; } |
|
20 | 9 |
public string? Commentaire { get; set; } |
10 |
|
|
11 |
public Comportement(DateTime Time, TypeComportement Type, string Commentaire) |
|
12 |
{ |
|
13 |
this.Time = Time; |
|
14 |
this.Type = Type ?? TypeComportement.AUTRE; |
|
15 |
this.Commentaire = Commentaire; |
|
16 |
} |
|
21 | 17 |
} |
22 | 18 |
} |
Formats disponibles : Unified diff