Révision 9fd69a0e GES_PAC/Model/SerieAnimal.cs

Voir les différences:

GES_PAC/Model/SerieAnimal.cs
1 1

  
2
using Microsoft.Maui.Layouts;
3

  
2 4
namespace GES_PAC.Model
3 5
{
4 6
    public class SerieAnimal
......
10 12
        public string RFID { get; set; }
11 13
        public List<Mesure> Mesures { get; set; }
12 14
        public List<Comportement> Comportements { get; set; }
15
        public bool IsOut { get; set; } = false;
13 16

  
14 17
        public SerieAnimal(int numeroBoite, double poids, DateTime datePesee, string rFID)
15 18
        {
......
35 38
        {
36 39
            return Mesures.Last();
37 40
        }
41

  
42
        public void AddBehaviour(Comportement newBehaviour)
43
        {
44
            Comportements.Add(newBehaviour);
45
        }
46

  
47
        public bool HasBehaviour()
48
        {
49
            return Comportements.Any();
50
        }
38 51
    }
39 52
}

Formats disponibles : Unified diff